Gotweapon

From EDukeWiki
Revision as of 00:40, 10 January 2012 by Hendricks266 (talk | contribs)
Jump to navigation Jump to search

This is an array of values which specify whether the player has a certain weapon.

This is deprecated when it comes to HANDBOMB_WEAPON or TRIPBOMB_WEAPON.

onevent EVENT_RESETWEAPONS
{
    ifvare MULTIMODE 1
    {
        ifvare VOLUME 0
        {
            ifvare LEVEL 0 // remove the player's pistol if they spawned in single player on E1L1
            {
                setplayer[THISACTOR].gotweapon PISTOL_WEAPON ZERO
                setplayer[THISACTOR].ammo_amount PISTOL_WEAPON ZERO
            }
        }
    }
}
endevent