- scriptified UseInventory and several functions using the already scriptified ones,
This commit is contained in:
parent
588ddd185b
commit
09129e0113
14 changed files with 384 additions and 436 deletions
|
|
@ -641,7 +641,11 @@ static void TakeStrifeItem (player_t *player, PClassActor *itemtype, int amount)
|
|||
if (itemtype->TypeName == NAME_Sigil)
|
||||
return;
|
||||
|
||||
player->mo->TakeInventory(itemtype, amount);
|
||||
IFVM(Actor, TakeInventory)
|
||||
{
|
||||
VMValue params[] = { player->mo, itemtype, amount, false, false };
|
||||
VMCall(func, params, 5, nullptr, 0);
|
||||
}
|
||||
}
|
||||
|
||||
CUSTOM_CVAR(Float, dlg_musicvolume, 1.0f, CVAR_ARCHIVE)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue