- partial scriptification of AInventory.
- scriptification of CustomInventory.
This commit is contained in:
parent
19b1c10ba8
commit
7c6542e595
10 changed files with 294 additions and 391 deletions
|
|
@ -2620,9 +2620,9 @@ void FParser::SF_MaxPlayerAmmo()
|
|||
if(amount < 0) amount = 0;
|
||||
if (!iammo)
|
||||
{
|
||||
iammo = static_cast<AInventory *>(Spawn (ammotype));
|
||||
players[playernum].mo->GiveAmmo(ammotype, 1);
|
||||
iammo = players[playernum].mo->FindInventory(ammotype);
|
||||
iammo->Amount = 0;
|
||||
iammo->AttachToOwner (players[playernum].mo);
|
||||
}
|
||||
iammo->MaxAmount = amount;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue