From: Mario Date: Fri, 10 Jun 2016 13:22:33 +0000 (+1000) Subject: Make setself extinct X-Git-Tag: xonotic-v0.8.2~844 X-Git-Url: https://de.git.xonotic.org/?a=commitdiff_plain;h=c01cdc7545e3884e6c92c039aa82987d5bf37b81;p=xonotic%2Fxonotic-data.pk3dir.git Make setself extinct --- diff --git a/qcsrc/common/vehicles/vehicle/raptor.qc b/qcsrc/common/vehicles/vehicle/raptor.qc index b0c8863df..6273e83b5 100644 --- a/qcsrc/common/vehicles/vehicle/raptor.qc +++ b/qcsrc/common/vehicles/vehicle/raptor.qc @@ -385,15 +385,13 @@ bool raptor_frame(entity this) UpdateAuxiliaryXhair(this, trace_endpos, '0 1 0', 0); */ - setself(vehic); - Weapon wep1 = WEP_RAPTOR; if(!forbidWeaponUse(this)) if(PHYS_INPUT_BUTTON_ATCK(this)) if (wep1.wr_checkammo1(wep1, vehic)) { .entity weaponentity = weaponentities[0]; - wep1.wr_think(wep1, vehic, weaponentity, 1); + WITHSELF(vehic, wep1.wr_think(wep1, vehic, weaponentity, 1)); } if(vehic.vehicle_flags & VHF_SHIELDREGEN) @@ -413,7 +411,7 @@ bool raptor_frame(entity this) if(PHYS_INPUT_BUTTON_ATCK2(this)) { .entity weaponentity = weaponentities[1]; - wep2a.wr_think(wep2a, vehic, weaponentity, 2); + WITHSELF(vehic, wep2a.wr_think(wep2a, vehic, weaponentity, 2)); vehic.delay = time + autocvar_g_vehicle_raptor_bombs_refire; vehic.lip = time; } @@ -425,14 +423,12 @@ bool raptor_frame(entity this) if(PHYS_INPUT_BUTTON_ATCK2(this)) { .entity weaponentity = weaponentities[1]; - wep2b.wr_think(wep2b, vehic, weaponentity, 2); + WITHSELF(vehic, wep2b.wr_think(wep2b, vehic, weaponentity, 2)); vehic.delay = time + autocvar_g_vehicle_raptor_flare_refire; vehic.lip = time; } } - setself(this); - vehic.bomb1.alpha = vehic.bomb2.alpha = (time - vehic.lip) / (vehic.delay - vehic.lip); this.vehicle_reload2 = bound(0, vehic.bomb1.alpha * 100, 100); this.vehicle_ammo2 = (this.vehicle_reload2 == 100) ? 100 : 0;