X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fvehicles%2Fvehicle%2Fspiderbot.qc;h=a0954b5013078f6ec3e552b5ca923efc7f20a730;hb=83093a5626b3ec25a2dc4f87b24eda2a95a8335f;hp=79d938d2ef8c0fcba5b3676667ef506184242b23;hpb=46682a49ba71f1664e5625fe2d9c3be5e95db901;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/vehicles/vehicle/spiderbot.qc b/qcsrc/common/vehicles/vehicle/spiderbot.qc index 79d938d2e..a0954b501 100644 --- a/qcsrc/common/vehicles/vehicle/spiderbot.qc +++ b/qcsrc/common/vehicles/vehicle/spiderbot.qc @@ -1,7 +1,5 @@ #include "spiderbot.qh" -#ifdef IMPLEMENTATION - const int SBRM_FIRST = 1; const int SBRM_VOLLY = 1; const int SBRM_GUIDE = 2; @@ -123,9 +121,9 @@ bool spiderbot_frame(entity this, float dt) } if (!PHYS_INPUT_BUTTON_JUMP(this)) - PHYS_INPUT_BUTTON_JUMP(vehic) = false; + vehic.button2 = false; - if((IS_ONGROUND(vehic)) && PHYS_INPUT_BUTTON_JUMP(this) && !PHYS_INPUT_BUTTON_JUMP(vehic) && vehic.tur_head.wait < time) + if((IS_ONGROUND(vehic)) && PHYS_INPUT_BUTTON_JUMP(this) && !vehic.button2 && vehic.tur_head.wait < time) { sound (vehic, CH_TRIGGER_SINGLE, SND_VEH_SPIDERBOT_JUMP, VOL_VEHICLEENGINE, ATTEN_NORM); //dprint("spiderbot_jump:", ftos(soundlength("vehicles/spiderbot_jump.wav")), "\n"); @@ -133,7 +131,7 @@ bool spiderbot_frame(entity this, float dt) vehic.tur_head.wait = time + 2; vehic.jump_delay = time + 2; - PHYS_INPUT_BUTTON_JUMP(vehic) = true; // set spider's jump + vehic.button2 = true; // set spider's jump //PHYS_INPUT_BUTTON_JUMP(this) = false; vector movefix = '0 0 0'; @@ -451,7 +449,7 @@ void spiderbot_blowup(entity this) SUB_SetFade(g1, time, min(this.respawntime, 10)); SUB_SetFade(g2, time, min(this.respawntime, 10)); - RadiusDamage (this, this.enemy, 250, 15, 250, NULL, NULL, 250, DEATH_VH_SPID_DEATH.m_id, NULL); + RadiusDamage (this, this.enemy, 250, 15, 250, NULL, NULL, 250, DEATH_VH_SPID_DEATH.m_id, DMG_NOWEP, NULL); this.alpha = this.tur_head.alpha = this.gun1.alpha = this.gun2.alpha = -1; set_movetype(this, MOVETYPE_NONE); @@ -639,4 +637,3 @@ METHOD(Spiderbot, vr_setup, void(Spiderbot thisveh, entity instance)) } #endif -#endif