0.1.29 new feature - Weapon scripts

Forum Archive - from http://theuniversal.net
Locked
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

0.1.29 new feature - Weapon scripts

Post by Mit »

Next version of the game (coming shortly) includes a replacement for the rather convoluted weapons system that is currently used. Instead of the pre-defined list of weapons theres now a script file that the world owner can edit to change any aspect of the weapons available.

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
}
"Fire= " determines how the weapon is launched (i.e. is it thrown upwards - or horizontally - or lobbed like a projectile )
"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..
Last edited by Mit on Mon Jul 12, 2004 12:30 pm, edited 1 time in total.
User avatar
Magicfinger
Staff
Staff
Posts: 1078
Joined: Tue Sep 30, 2003 10:38 am
Location: here,there and everywhere

Post by Magicfinger »

oooh :shock:
User avatar
zaroba
World Owner
World Owner
Posts: 7257
Joined: Fri Oct 10, 2003 11:06 pm
Location: Hereford, PA
Contact:

Post by zaroba »

woo hoo, cool!

do i see this for items in the future too?
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

aye, thats something ive been thinkin about a bit - possibly somethin with a bit of depth such that you could do things like Item1::Use( print"Congratulations you used item1"; ) etc. (but with much more options than just printing a message of course..)

Dont get your hopes up tho.. thats the kinda thing i'd need to get paid to write :]
User avatar
hedgehog
Staff
Staff
Posts: 1057
Joined: Tue Sep 30, 2003 2:57 am
Location: ann arbor, michigan
Contact:

Post by hedgehog »

that is true internet happiness.
User avatar
hedgehog
Staff
Staff
Posts: 1057
Joined: Tue Sep 30, 2003 2:57 am
Location: ann arbor, michigan
Contact:

Post by hedgehog »

incidently is this actually in for 1.29, or are we waitin' for 1.30?

if it's actually in, what's the path / name to make the scripts file / etc?
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

tis in 0.1.29 (if no file detected it reverts to the old default set). Will post details on the world owners private forum.
Locked