Page 1 of 1
Weapon script.
Posted: Wed Jan 25, 2006 5:06 pm
by VDZ
Can anybody please tell me just how it works? Every weapon I make doesn't work :\
Posted: Wed Jan 25, 2006 8:07 pm
by zaroba
Posted: Thu Jan 26, 2006 12:59 pm
by Mit
A (possibly) more authoritative and utd description can also be found
http://theuniversal.net/forum/viewtopic.php?t=3362
(which'll be included in the new manual once more bits have been filled in on it)
Posted: Thu Jan 26, 2006 7:02 pm
by Fooli
Yeh, it ought to be a bit more authoritative - it includes stuff that was added since the knowledgebase info. It is a bit long-winded, I know, but if you're still struggling after digesting all of that, post an example weapon and maybe we can work out what's going wrong.
f
Posted: Fri Jan 27, 2006 7:58 pm
by VDZ
Weapon1
{ #DeathShot
Control=Basic
Fire=Basic
Object=Plasma1
Damage=6500
Item=NONE
Speed=6000
Sound=500
BuildDamage=0
}
This is meant to be an instant-kill fast plasma shot.
Weapon2
{ #EvilEye
Control=EvilEye
Fire=EvilEye
Object=EvilEye
Item=NONE
Damage=6500
Speed=1000
Sound=501
BuildDamage=0
}
This is meant to be an instant-kill Evil Eye.
Posted: Fri Jan 27, 2006 8:12 pm
by zaroba
thiers no expiry or delay.
might be why thier not working.
does sound even do anything?
heres the EE from sabrada:
Weapon #
{ Evil Eye
Fire=EvilEye
Control=EvilEye
Object=EvilEye
Damage=30000
Item=None
speed=10
Delay=1
Expiry=1000
}
it makes sounds and acts exactly like the old EEs did, except has alot more damage and shoots hundreds in a few secs.
it could also be a settings issue

i had to copy sabrada's settings file to planitia to get the weaps to work thier, even though thier were no settings i could find that were disabling them.
Posted: Sat Jan 28, 2006 1:48 am
by Mit
evileye sounds work differently, but most of the main weapon objects should trigger the assignable sounds corresponding to the SOUND= entry in the script num. i think. There might be a +10 in there or something tho
That evileye delay time would be severly frowned upon by online game designers and server hosts alike :]. Any weapon (particularly one with unlimited ammo) with a delay time much less than 50-100 is likely to use/require nasty amounts of bandwidth on the server.
Posted: Sat Jan 28, 2006 4:12 am
by zaroba
hence why on sabrada, that evil eye is only on the god vehicles
maybe the op only vehicles too, but i think i removed it from them.
Posted: Sat Jan 28, 2006 10:36 am
by Fooli
Mit wrote:There might be a +10 in there or something tho :).
It's +499. sound=500 plays assignable sound 1. Sound=501 plays sound 2, etc.
If there's a good reason why I'd enjoy hearing it :)
When I popped onto VDZ's world yesterday he had as many errors in the script as there were lines in it... including the first one. So the parser wasn't even picking up the first weapon label - he disappeared before I could work out why but sounds like he has extra lines or spaces or some such crap in the script file itself. Until those are fixed and
something's working there's not a lot else we can do.
f
Posted: Sat Jan 28, 2006 10:38 am
by Mit
yeh, its obvious tho innit ?

Posted: Sat Jan 28, 2006 10:39 am
by Fooli
Only to one person in the entire universe :)
f
Posted: Sat Jan 28, 2006 11:41 am
by VDZ
I found the problem.
I typed
Weapon1
instead of
Weapon 1