X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fweapons%2Fweapon.qh;h=c76a88399daff322c5b789dbc81f6b26c7cd03ca;hb=537313c9e52ce93b28ad6580b76e92d99f0a9d93;hp=ef115b220d5e699df07c440c59bb2fc528fc8587;hpb=d271f27a5ac351a3a7b39636932f6d661492be1d;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/weapons/weapon.qh b/qcsrc/common/weapons/weapon.qh index ef115b220..c76a88399 100644 --- a/qcsrc/common/weapons/weapon.qh +++ b/qcsrc/common/weapons/weapon.qh @@ -89,9 +89,9 @@ CLASS(Weapon, Object) /** (SERVER) logic to run every frame */ METHOD(Weapon, wr_think, void(Weapon this, entity actor, .entity weaponentity, int fire)) {} /** (SERVER) checks ammo for weapon primary */ - METHOD(Weapon, wr_checkammo1, bool(Weapon this)) {return false;} + METHOD(Weapon, wr_checkammo1, bool(Weapon this, entity actor)) {return false;} /** (SERVER) checks ammo for weapon second */ - METHOD(Weapon, wr_checkammo2, bool(Weapon this)) {return false;} + METHOD(Weapon, wr_checkammo2, bool(Weapon this, entity actor)) {return false;} /** (SERVER) runs bot aiming code for this weapon */ METHOD(Weapon, wr_aim, void(Weapon this)) {} /** (BOTH) precaches models/sounds used by this weapon, also sets up weapon properties */