- scriptified the backpack.
- added GetParentClass builtin to compiler.
This commit is contained in:
parent
1f4342b48e
commit
4759f9a399
9 changed files with 246 additions and 192 deletions
|
|
@ -2637,7 +2637,7 @@ void FParser::SF_MaxPlayerAmmo()
|
|||
|
||||
for (AInventory *item = players[playernum].mo->Inventory; item != NULL; item = item->Inventory)
|
||||
{
|
||||
if (item->IsKindOf(RUNTIME_CLASS(ABackpackItem)))
|
||||
if (item->IsKindOf(PClass::FindClass(NAME_BackpackItem)))
|
||||
{
|
||||
if (t_argc>=4) amount = intvalue(t_argv[3]);
|
||||
else amount*=2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue