PDA

View Full Version : Bomy Weapon Scripting


Poogle
06-15-2001, 08:12 AM
anyone know how to make bomy weapons? please post them and make sure they are legal like a bomy hacky sack?(LEGAL PLEASE)

BocoC
06-15-2001, 11:18 AM
This is easy. Instead of:

if (weaponfired) {
do crap;
}


Do this:

if (bomyweaponfired) {
do crap;
}
if (bomyweaponfiredw) { //fired in water
do crap;
}

G_yoshi
06-15-2001, 11:48 PM
that works....but it requires freezeplayer in the weapon or it wont do anything

vergil
06-16-2001, 01:43 AM
um.. is your signature supposed to spell out that code? you cant use HTML or JavaScript here =\

Poogle
06-16-2001, 03:48 AM
Thanks dude!

manton
06-16-2001, 04:08 AM
Originally posted by BocoC
This is easy. Instead of:

if (weaponfired) {
do crap;
}


Do this:

if (bomyweaponfired) {
do crap;
}
if (bomyweaponfiredw) { //fired in water
do crap;
}


Hmm,Would that work with other races too? I thought it might if the script is a bit like the bomy script.

Bane2000
06-16-2001, 05:23 AM
yeah that got on my nerves a lot, making weapons that i couldn't fire, it just wouldnt work, so if i put :

if (bomyweaponfired) {
}

it will work ? (yeah and smae for water)

BocoC
06-16-2001, 07:14 AM
Yes. In the bomy code, if the D key is pressed, this gets run:


function Cweapon() {
if (selectedweapon>=0) {
if (pswimming)
callweapon selectedweapon,bomyweaponfiredw;
else
callweapon selectedweapon,bomyweaponfired;
}
}

What this does is calls your selected weapon and runs the bomyweaponfired or bomyweaponfiredw segments of it. Pretty easy.