X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fweapons%2Fweapon%2Fvaporizer.qc;h=7866f1b828e27d55312b3952c0b164a837b01e11;hp=cb55c5ddafede9f71efcc7ce43c2cd4f56dd12c5;hb=64f2b309aa5be8aafb9ad2137174bb6d99aeb876;hpb=149e65e8b3d7a0ee1c5adc466cf018b31482d90e diff --git a/qcsrc/common/weapons/weapon/vaporizer.qc b/qcsrc/common/weapons/weapon/vaporizer.qc index cb55c5dda..7866f1b82 100644 --- a/qcsrc/common/weapons/weapon/vaporizer.qc +++ b/qcsrc/common/weapons/weapon/vaporizer.qc @@ -352,12 +352,12 @@ void W_RocketMinsta_Attack3 (entity actor, .entity weaponentity) } } -METHOD(Vaporizer, wr_aim, void(entity thiswep, entity actor)) +METHOD(Vaporizer, wr_aim, void(entity thiswep, entity actor, .entity weaponentity)) { if(actor.(thiswep.ammo_field) > 0) - PHYS_INPUT_BUTTON_ATCK(actor) = bot_aim(actor, 1000000, 0, 1, false); + PHYS_INPUT_BUTTON_ATCK(actor) = bot_aim(actor, weaponentity, 1000000, 0, 1, false); else - PHYS_INPUT_BUTTON_ATCK2(actor) = bot_aim(actor, WEP_CVAR_SEC(vaporizer, speed), 0, WEP_CVAR_SEC(vaporizer, lifetime), false); // WEAPONTODO: replace with proper vaporizer cvars + PHYS_INPUT_BUTTON_ATCK2(actor) = bot_aim(actor, weaponentity, WEP_CVAR_SEC(vaporizer, speed), 0, WEP_CVAR_SEC(vaporizer, lifetime), false); // WEAPONTODO: replace with proper vaporizer cvars } METHOD(Vaporizer, wr_think, void(entity thiswep, entity actor, .entity weaponentity, int fire)) {