Weapons

Weapons

Classnames: wp_weapon2, wp_weapon3, wp_weapon4_staff/head
Purpose: Mayhem
H2 Code: wp_art.hc
fields required: origin
The weapons show different models and work differently for the player depending on the player's class. And remember that of course weapon 4 doesn't work until player has picked up both wp_weapon4_staff and wp_weapon4_head. Like other point entities, weapons can also trigger events and toggle lights when acquired; this works in original H2 but wasn't actually used by Raven until Portal of Praevus (thanks to Terata for enlightenment on this).

Fields

origin Value is a triple of number, location of weapon. Your editor should manage this visually, automatically.
target Value is a name, of target triggered when weapon is acquired.
style Value is a number (32 or greater) used in conjunction with target for toggling lights; this style values is to be shared by all lights that toggle together.
spawnflags Value 1 means weapon hangs floating where put it in the map, rather than dropping to convenient grabbing distance off the floor (default value = 0). Your map editor should provide some kind of labelled checkbox scheme for spawnflags,
Back to the list.