Lightening?

Questions and answers about the how and why of making maps.
Post Reply
User avatar
ducktape
Private First Class
Private First Class
Posts: 1206
Joined: Sat Jul 01, 2006 2:06 am
Location: Right Behind you!

Lightening?

Post by ducktape »

Is it possible to have lightening on a server? and if so how?
Image
User avatar
Winny
Grouchy
Grouchy
Posts: 2381
Joined: Wed Aug 24, 2005 12:27 am
Location: Ottawa eh?
Contact:

Post by Winny »

I did lightning on one of my maps, but it was just a modified world weapon...

Ill try to find the map :p

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=
User avatar
ducktape
Private First Class
Private First Class
Posts: 1206
Joined: Sat Jul 01, 2006 2:06 am
Location: Right Behind you!

Post by ducktape »

lol thanks Xp

could you help me with the code? maybe at least with what I need to do.
Image
User avatar
ducatiwannabe
Private First Class
Private First Class
Posts: 3258
Joined: Tue Aug 10, 2004 3:55 pm
Location: Planet Earth
Contact:

Post by ducatiwannabe »

I'm not sure, but win, didn't you make white shockwaves and throw them off in the sky in random places? :)
User avatar
ducktape
Private First Class
Private First Class
Posts: 1206
Joined: Sat Jul 01, 2006 2:06 am
Location: Right Behind you!

Post by ducktape »

Really? :( but the pic did look like lightening
Image
User avatar
Teppic
Private First Class
Private First Class
Posts: 576
Joined: Mon Mar 07, 2005 10:00 pm
Location: The North Block

Post by Teppic »

Looks like a white laser rico'd off some zero alpha objects.
User avatar
Winny
Grouchy
Grouchy
Posts: 2381
Joined: Wed Aug 24, 2005 12:27 am
Location: Ottawa eh?
Contact:

Post by Winny »

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

###############################
User avatar
ducktape
Private First Class
Private First Class
Posts: 1206
Joined: Sat Jul 01, 2006 2:06 am
Location: Right Behind you!

Post by ducktape »

Awesome! thanks man.
@ Win XP could you add me to your msn
Image
User avatar
Spazzy McGee
Sergeant Major
Sergeant Major
Posts: 1405
Joined: Mon Mar 21, 2005 4:59 pm
Location: Planet MoFo, Sheffield Division; United Kingdom

Post by Spazzy McGee »

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
"Life is what happens to you while you're busy making other plans." - John Lennon
User avatar
A Vicious Muffin
Private First Class
Private First Class
Posts: 534
Joined: Sat Aug 26, 2006 12:25 am
Location: Drury Lane

Post by A Vicious Muffin »

Woah. That looks cool. So it's kinda just like a morphed laser?
Image
User avatar
ducktape
Private First Class
Private First Class
Posts: 1206
Joined: Sat Jul 01, 2006 2:06 am
Location: Right Behind you!

Post by ducktape »

ok kool thanks for all your help. me and tadd are going to work on making ALOT of diff ones but thanks for you help
Image
User avatar
optic delusion
Special Forces
Special Forces
Posts: 1054
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

Post by optic delusion »

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.
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.
User avatar
knoxkorner
Private First Class
Private First Class
Posts: 112
Joined: Sat Aug 26, 2006 7:24 pm

Post by knoxkorner »

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

###############################
oh, so i suppose thats how you like make sws and stuff come out of nowhere?
User avatar
Winny
Grouchy
Grouchy
Posts: 2381
Joined: Wed Aug 24, 2005 12:27 am
Location: Ottawa eh?
Contact:

Post by Winny »

That code makes a lightning bolt in the center of a map.

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 
User avatar
ducatiwannabe
Private First Class
Private First Class
Posts: 3258
Joined: Tue Aug 10, 2004 3:55 pm
Location: Planet Earth
Contact:

Post by ducatiwannabe »

Don't forget color! :P

You can do color 0-7 I think. That's all the teams. :)
Post Reply