Lightening?
- ducktape
- Private First Class
- Posts: 1206
- Joined: Sat Jul 01, 2006 2:06 am
- Location: Right Behind you!
Lightening?
Is it possible to have lightening on a server? and if so how?
I did lightning on one of my maps, but it was just a modified world weapon...
Ill try to find the map
EDIT:
ah, here it is:
http://www.bzfusion.net/winxp/screenshots/moats4.png
Here is the map file, have fun finding the right code
http://www.rangfar.com/hosted/bzflagwor ... highlight=
Ill try to find the map
EDIT:
ah, here it is:
http://www.bzfusion.net/winxp/screenshots/moats4.png
Here is the map file, have fun finding the right code
http://www.rangfar.com/hosted/bzflagwor ... highlight=
- ducatiwannabe
- Private First Class
- Posts: 3258
- Joined: Tue Aug 10, 2004 3:55 pm
- Location: Planet Earth
- Contact:
Yeah, Teppic, exactly.
Ducktape, this is the lightning code:
(test it out...should put a lightning bolt at the center of your map)
Ducktape, this is the lightning code:
(test it out...should put a lightning bolt at the center of your map)
Code: Select all
weapon
name test_lightning
position 0.0 0 21.5
rotation 0.0
initdelay 0
delay 15
type L
end
weapon
name test_lightning
position 0.0 0 21.5
rotation 0.0
initdelay 0.5
delay 15
type L
end
meshpyr
name 1
position 2 0 21
rotation 0
size 4 4 5
drivethrough
color 0 0 0 0
end
########
material
name clearlight
texture wall.png
diffuse 0 0 0 0
end
meshbox
name Box copy 3
position 0 -4 26
rotation 0
size 4 0.0001 290
drivethrough
matref clearlight
end
meshbox
name Box copy 4
position 0 4 26
rotation 0
size 4 0.0001 290
drivethrough
matref clearlight
end
meshbox
name Box copy 5
position 4 0 26
rotation 0
size 0.0001 4 290
drivethrough
matref clearlight
end
meshbox
name Box copy 6
position -4 0 26
rotation 0
size 0.0001 4 290
drivethrough
matref clearlight
end
###############################
- Spazzy McGee
- Sergeant Major
- Posts: 1405
- Joined: Mon Mar 21, 2005 4:59 pm
- Location: Planet MoFo, Sheffield Division; United Kingdom
I have done it several times before with a texture and a dyncol - it's a bit more suited to electricity jumping between terminals, but it works. just add death physics. These are the textures I made:
http://images.bzflag.org/gbratley/Spazz ... la-arc.png
http://images.bzflag.org/gbratley/Spazz ... a-arc2.png
http://images.bzflag.org/gbratley/Spazz ... la-arc.png
http://images.bzflag.org/gbratley/Spazz ... a-arc2.png
"Life is what happens to you while you're busy making other plans." - John Lennon
- A Vicious Muffin
- Private First Class
- Posts: 534
- Joined: Sat Aug 26, 2006 12:25 am
- Location: Drury Lane
- optic delusion
- Special Forces
- Posts: 1054
- Joined: Sat Sep 25, 2004 2:29 pm
- Location: Planet MoFo
- Contact:
there are some more lightning texures here
http://images.bzflag.bz/pmatous/transparent/
these will look blank on a white background, but the lightning is there.
http://images.bzflag.bz/pmatous/transparent/
these will look blank on a white background, but the lightning is there.
Take a look at my Defender game mode concept.
Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.
Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.
- knoxkorner
- Private First Class
- Posts: 112
- Joined: Sat Aug 26, 2006 7:24 pm
oh, so i suppose thats how you like make sws and stuff come out of nowhere?Win Xp wrote:Yeah, Teppic, exactly.
Ducktape, this is the lightning code:
(test it out...should put a lightning bolt at the center of your map)
Code: Select all
weapon name test_lightning position 0.0 0 21.5 rotation 0.0 initdelay 0 delay 15 type L end weapon name test_lightning position 0.0 0 21.5 rotation 0.0 initdelay 0.5 delay 15 type L end meshpyr name 1 position 2 0 21 rotation 0 size 4 4 5 drivethrough color 0 0 0 0 end ######## material name clearlight texture wall.png diffuse 0 0 0 0 end meshbox name Box copy 3 position 0 -4 26 rotation 0 size 4 0.0001 290 drivethrough matref clearlight end meshbox name Box copy 4 position 0 4 26 rotation 0 size 4 0.0001 290 drivethrough matref clearlight end meshbox name Box copy 5 position 4 0 26 rotation 0 size 0.0001 4 290 drivethrough matref clearlight end meshbox name Box copy 6 position -4 0 26 rotation 0 size 0.0001 4 290 drivethrough matref clearlight end ###############################
That code makes a lightning bolt in the center of a map.
This is the code to make a SW world weapon:
This is the code to make a SW world weapon:
Code: Select all
weapon
name yourname
position x y z
rotation z
initdelay "some time" (IE: 0.5)
delay "time between firings" (IE: 2)
type SW
end
- ducatiwannabe
- Private First Class
- Posts: 3258
- Joined: Tue Aug 10, 2004 3:55 pm
- Location: Planet Earth
- Contact: