X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fweapons%2Fweapon%2Fhlac.qc;h=6e03b1041406233b5c0130f08be7c8782c79c25f;hb=d25e1a63b92fa3ba8c20f746228d125f6e8434e0;hp=ba2b7f35143116cee4fb32c63382d1c3aa977b01;hpb=4d01c64254bd9726c345afe727b70749879c04f6;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/weapons/weapon/hlac.qc b/qcsrc/common/weapons/weapon/hlac.qc index ba2b7f351..6e03b1041 100644 --- a/qcsrc/common/weapons/weapon/hlac.qc +++ b/qcsrc/common/weapons/weapon/hlac.qc @@ -4,7 +4,7 @@ CLASS(HLAC, Weapon) /* ammotype */ ATTRIB(HLAC, ammo_field, .int, ammo_cells); /* impulse */ ATTRIB(HLAC, impulse, int, 6); /* flags */ ATTRIB(HLAC, spawnflags, int, WEP_FLAG_MUTATORBLOCKED | WEP_FLAG_RELOADABLE | WEP_TYPE_SPLASH); -/* rating */ ATTRIB(HLAC, bot_pickupbasevalue, float, BOT_PICKUP_RATING_MID); +/* rating */ ATTRIB(HLAC, bot_pickupbasevalue, float, 4000); /* color */ ATTRIB(HLAC, wpcolor, vector, '0 1 0'); /* modelname */ ATTRIB(HLAC, mdl, string, "hlac"); #ifdef GAMEQC @@ -212,9 +212,9 @@ void W_HLAC_Attack2_Frame(Weapon thiswep, entity actor, .entity weaponentity) } } -METHOD(HLAC, wr_aim, void(entity thiswep, entity actor)) +METHOD(HLAC, wr_aim, void(entity thiswep, entity actor, .entity weaponentity)) { - PHYS_INPUT_BUTTON_ATCK(actor) = bot_aim(actor, WEP_CVAR_PRI(hlac, speed), 0, WEP_CVAR_PRI(hlac, lifetime), false); + PHYS_INPUT_BUTTON_ATCK(actor) = bot_aim(actor, weaponentity, WEP_CVAR_PRI(hlac, speed), 0, WEP_CVAR_PRI(hlac, lifetime), false); } METHOD(HLAC, wr_think, void(entity thiswep, entity actor, .entity weaponentity, int fire)) {