Heres an example of the script format and a brief explanation of what things do..
Code: Select all
Weapon 1
{
Fire=Basic
Control=Javelin
damage=3
graphic=2
item=WEAPON4
prox=low
param=0
delay=800
object=projectile
sound=1
anim=AnimFire
}
Weapon 2
{
Fire=Bomb
Control=Basic
damage=6
graphic=3
item=NONE
prox=low
param=0
delay=300
object=projectile
sound=2
anim=AnimFireWeap2
}
"Control=" determines the procedure for launching the weapon - Can be simply when the fire key is pressed, or there are more complicated options such as a mode where the strength of the launch depends on how long the key has been held for.
"delay=" determines how long a gap must pass between shots being fired
"object=" assigns the weapon a certain set of physical properties, defining such things as whether it bounces, how much air-resistance is applied, whether it leaves smoke trails, whether it explodes when it hits something..
"graphic=" sets the weapon model that will be displayed - linked to the server-configurable list of 'weapon models'
the rest ya can prolly work out..