void register_weapon(
int id,
WepSet bit,
- float(float) func,
- .float ammotype,
- float i,
- float weapontype,
+ bool(int) func,
+ .int ammotype,
+ int i,
+ int weapontype,
float pickupbasevalue,
vector clr,
string modelname,
func(WR_INIT);
#endif
}
-float w_null(float dummy)
+bool w_null(int dummy)
{
return 0;
}
}
string W_NumberWeaponOrder_MapFunc(string s)
{
- float i;
+ int i;
if(s == "0" || stof(s))
return s;
s = W_UndeprecateName(s);
void W_RandomWeapons(entity e, float n)
{
- float i, j;
+ int i, j;
WepSet remaining;
WepSet result;
remaining = e.weapons;
e.weapons = result;
}
-string GetAmmoPicture(.float ammotype)
+string GetAmmoPicture(.int ammotype)
{
switch(ammotype)
{
}
#ifdef CSQC
-.float GetAmmoFieldFromNum(int i)
+.int GetAmmoFieldFromNum(int i)
{
switch(i)
{
}
}
-int GetAmmoStat(.float ammotype)
+int GetAmmoStat(.int ammotype)
{
switch(ammotype)
{