Gotweapon: Difference between revisions
Jump to navigation
Jump to search
Hendricks266 (talk | contribs) No edit summary |
No edit summary |
||
Line 16: | Line 16: | ||
This is deprecated when it comes to HANDBOMB_WEAPON or TRIPBOMB_WEAPON. | This is deprecated when it comes to HANDBOMB_WEAPON or TRIPBOMB_WEAPON. | ||
appendevent EVENT_RESETWEAPONS | |||
// remove the player's pistol if they spawned on E1L1 | |||
ifvare | |||
ifvare VOLUME 0 | |||
ifvare LEVEL 0 | |||
{ | { | ||
setplayer[THISACTOR].'''gotweapon''' PISTOL_WEAPON 0 | |||
setplayer[THISACTOR].[[ammo_amount]] PISTOL_WEAPON 0 | |||
} | } | ||
endevent | endevent | ||
[[Category:Player structure members]] | [[Category:Player structure members]] |
Revision as of 19:47, 19 February 2020
This is an array of values which specify whether the player has a certain weapon.
define KNEE_WEAPON 0 define PISTOL_WEAPON 1 define SHOTGUN_WEAPON 2 define CHAINGUN_WEAPON 3 define RPG_WEAPON 4 define HANDBOMB_WEAPON 5 define SHRINKER_WEAPON 6 define DEVISTATOR_WEAPON 7 define TRIPBOMB_WEAPON 8 define FREEZE_WEAPON 9 define HANDREMOTE_WEAPON 10 define GROW_WEAPON 11
This is deprecated when it comes to HANDBOMB_WEAPON or TRIPBOMB_WEAPON.
appendevent EVENT_RESETWEAPONS // remove the player's pistol if they spawned on E1L1
ifvare VOLUME 0 ifvare LEVEL 0 { setplayer[THISACTOR].gotweapon PISTOL_WEAPON 0 setplayer[THISACTOR].ammo_amount PISTOL_WEAPON 0 } endevent