}
}
MUTATOR_CALLHOOK(GetResourceLimit, e, res_type, limit);
- limit = M_ARGV(2, float);
+ limit = M_ARGV(9, float);
if (limit > RES_AMOUNT_HARD_LIMIT)
{
limit = RES_AMOUNT_HARD_LIMIT;
{
return;
}
- res_type = M_ARGV(1, entity);
- amount = M_ARGV(2, float);
+ res_type = M_ARGV(8, entity);
+ amount = M_ARGV(9, float);
float max_amount = GetResourceLimit(e, res_type); // TODO: should allow overriding these limits if cheats are enabled!
float amount_wasted = 0;
if (amount > max_amount && max_amount != RES_LIMIT_NONE)
{
return;
}
- res_type = M_ARGV(1, entity);
- amount = M_ARGV(2, float);
+ res_type = M_ARGV(8, entity);
+ amount = M_ARGV(9, float);
if (amount <= 0)
{
return;
{
return;
}
- res_type = M_ARGV(1, entity);
- amount = M_ARGV(2, float);
- limit = M_ARGV(3, float);
+ res_type = M_ARGV(8, entity);
+ amount = M_ARGV(9, float);
+ limit = M_ARGV(10, float);
if (amount <= 0)
{
return;
{
return;
}
- res_type = M_ARGV(1, entity);
- amount = M_ARGV(2, float);
+ res_type = M_ARGV(8, entity);
+ amount = M_ARGV(9, float);
if (amount <= 0)
{
return;
{
return;
}
- res_type = M_ARGV(1, entity);
- amount = M_ARGV(2, float);
- limit = M_ARGV(3, float);
+ res_type = M_ARGV(8, entity);
+ amount = M_ARGV(9, float);
+ limit = M_ARGV(10, float);
if (amount <= 0)
{
return;