X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fvehicles%2Funit%2Fraptor.qc;h=2ea89491bb21317f61637ab6480ef3a9d48bfddb;hb=2ae8ccf2a62ca386ecf5c5627a4bc8fe8b4f2708;hp=8eaa0c93c0849acca091209c5f4507f4d08347fe;hpb=eb77ee40c24fd00c38627ed2cfea725a5971bb26;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/vehicles/unit/raptor.qc b/qcsrc/common/vehicles/unit/raptor.qc index 8eaa0c93c..2ea89491b 100644 --- a/qcsrc/common/vehicles/unit/raptor.qc +++ b/qcsrc/common/vehicles/unit/raptor.qc @@ -1,6 +1,7 @@ #ifndef VEHICLE_RAPTOR #define VEHICLE_RAPTOR #include "raptor.qh" +int v_raptor(int); REGISTER_VEHICLE_SIMPLE( /* VEH_##id */ RAPTOR, /* function */ v_raptor, @@ -12,7 +13,9 @@ REGISTER_VEHICLE_SIMPLE( /* tags */ "", "tag_hud", "tag_camera", /* netname */ "raptor", /* fullname */ _("Raptor") -); +) { + this.m_icon = "vehicle_raptor"; +} #endif #ifdef IMPLEMENTATION @@ -1042,7 +1045,7 @@ float v_raptor(float req) default: crosshair = vCROSS_BURST; } - Vehicles_drawHUD("vehicle_raptor", "vehicle_raptor_weapon1", "vehicle_raptor_weapon2", + Vehicles_drawHUD(VEH_RAPTOR.m_icon, "vehicle_raptor_weapon1", "vehicle_raptor_weapon2", "vehicle_icon_ammo1", autocvar_hud_progressbar_vehicles_ammo1_color, "vehicle_icon_ammo2", autocvar_hud_progressbar_vehicles_ammo2_color, crosshair);