X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fvehicles%2Fvehicle%2Fraptor.qc;h=da2c1da0be446d6e214f4d867753534dc3fdcc26;hb=0514f7948727cfa572b33bd29d1bdf2c13cd866d;hp=f0c4dc1ec7afd47a21f5d753d6427971237a4eb5;hpb=b8880819e333ef558143ae80afcdb339b907a439;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/vehicles/vehicle/raptor.qc b/qcsrc/common/vehicles/vehicle/raptor.qc index f0c4dc1ec..da2c1da0b 100644 --- a/qcsrc/common/vehicles/vehicle/raptor.qc +++ b/qcsrc/common/vehicles/vehicle/raptor.qc @@ -1,5 +1,11 @@ #include "raptor.qh" +#if defined(SVQC) + #include +#endif + +#ifdef GAMEQC + #ifdef SVQC bool autocvar_g_vehicle_raptor = true; @@ -409,7 +415,7 @@ bool raptor_frame(entity this, float dt) bool incoming = false; IL_EACH(g_projectiles, it.enemy == vehic, { - if(MISSILE_IS_TRACKING(it)) + if(it.missile_flags & MIF_GUIDED_TRACKING) if(vdist(vehic.origin - it.origin, <, 2 * autocvar_g_vehicle_raptor_flare_range)) { incoming = true; @@ -420,7 +426,7 @@ bool raptor_frame(entity this, float dt) if(incoming) { msg_entity = this; - soundto(MSG_ONE, vehic, CH_PAIN_SINGLE, SND(VEH_MISSILE_ALARM), VOL_BASE, ATTEN_NONE); + soundto(MSG_ONE, vehic, CH_PAIN_SINGLE, SND(VEH_MISSILE_ALARM), VOL_BASE, ATTEN_NONE, 0); } vehic.bomb1.cnt = time + 1; @@ -774,7 +780,7 @@ METHOD(Raptor, vr_crosshair, void(Raptor thisveh, entity player)) if(!dropmark) { - dropmark = spawn(); + dropmark = new(raptor_dropmark); dropmark.owner = player; dropmark.gravity = 1; dropmark.dphitcontentsmask = DPCONTENTS_SOLID; @@ -831,3 +837,5 @@ METHOD(Raptor, vr_setup, void(Raptor thisveh, entity instance)) } #endif + +#endif