MUTATOR_HOOKFUNCTION(nix, BuildMutatorsString)
{
- ret_string = strcat(ret_string, ":NIX");
- return false;
+ M_ARGV(0, string) = strcat(M_ARGV(0, string), ":NIX");
}
MUTATOR_HOOKFUNCTION(nix, BuildMutatorsPrettyString)
{
- ret_string = strcat(ret_string, ", NIX");
- return false;
+ M_ARGV(0, string) = strcat(M_ARGV(0, string), ", NIX");
}
MUTATOR_HOOKFUNCTION(nix, FilterItem)
-{SELFPARAM();
- switch (self.items)
+{
+ entity item = M_ARGV(0, entity);
+
+ switch (item.items)
{
case ITEM_HealthSmall.m_itemid:
case ITEM_HealthMedium.m_itemid:
}
MUTATOR_HOOKFUNCTION(nix, OnEntityPreSpawn)
-{SELFPARAM();
- if(self.classname == "target_items") // items triggers cannot work in nix (as they change weapons/ammo)
+{
+ entity ent = M_ARGV(0, entity);
+
+ if(ent.classname == "target_items") // items triggers cannot work in nix (as they change weapons/ammo)
return true;
return false;
}
MUTATOR_HOOKFUNCTION(nix, SetModname, CBC_ORDER_LAST)
{
- modname = "NIX";
+ M_ARGV(0, string) = "NIX";
return false;
}
#endif