CAP -SW

Place for people to discuss public servers, and also for admins to lay out the details of their servers
Post Reply
User avatar
Zelgadis
Private First Class
Private First Class
Posts: 638
Joined: Sat Jul 02, 2005 2:31 pm
Location: European Union

CAP -SW

Post by Zelgadis »

HI!

I want make a sw at bases, when someone cap the flag, then the sw should shoot,

example The Two Castles.

I dunno how to do this.

Can someone give me the code?

thx :D
Want to improve your skill? Join the http://guleague.org!
User avatar
tw1sted
Private First Class
Private First Class
Posts: 849
Joined: Tue Feb 21, 2006 10:21 pm

Post by tw1sted »

you need to add this:

Code: Select all

weapon
position 0 0 10
type SW
trigger oncap
eventteam -1
end 
The position of the WW is the position of the base.
User avatar
Zelgadis
Private First Class
Private First Class
Posts: 638
Joined: Sat Jul 02, 2005 2:31 pm
Location: European Union

Post by Zelgadis »

thx
Want to improve your skill? Join the http://guleague.org!
User avatar
Hannibal
Private First Class
Private First Class
Posts: 1073
Joined: Mon May 02, 2005 10:27 pm
Contact:

Post by Hannibal »

A Heart Attack wrote:you need to add this:

Code: Select all

weapon
position 0 0 10
type SW
trigger oncap
eventteam -1
end 
The position of the WW is the position of the base.
and that would be in the map file that you run.
Games don't make people violent, lag does.
ImageImage
Theme97
Private First Class
Private First Class
Posts: 221
Joined: Fri Nov 11, 2005 8:04 pm
Contact:

Post by Theme97 »

A Heart Attack wrote:you need to add this:

Code: Select all

weapon
position 0 0 10
type SW
trigger oncap
eventteam -1
end 
The position of the WW is the position of the base.
Actually, that would be triggered when any team caps.
Image
User avatar
tw1sted
Private First Class
Private First Class
Posts: 849
Joined: Tue Feb 21, 2006 10:21 pm

Post by tw1sted »

thats what he wants so no on camps at the base
User avatar
BinarySpike
Corporal
Corporal
Posts: 735
Joined: Mon Mar 28, 2005 11:58 pm
Contact:

Post by BinarySpike »

Code: Select all

weapon 
 position 0 0 10 
 type SW 
 trigger oncap 
 eventteam -1 
 end 
  • position, is the position of the weapon
  • type, is the type of weapon shot
  • trigger, is the event that sets the weapon off
  • eventteam, is the type of team that sets it off
Teams are
  • 0, rogue (unable to cap)
  • 1, red
  • 2, green
  • 3, blue
  • 4, purple
idk if 5 is observer or rabbit
but neither are able to set the event off. so you only need 1, 2, 3, or 4.
User avatar
Zelgadis
Private First Class
Private First Class
Posts: 638
Joined: Sat Jul 02, 2005 2:31 pm
Location: European Union

Post by Zelgadis »

ok, i have it now

for red team:

Code: Select all

weapon 
 position 0 902 65 
 type SW 
 trigger oncap 
 eventteam -1 
 end 
for blue team:

Code: Select all

weapon 
 position 0 -902 65 
 type SW 
 trigger oncap 
 eventteam -3 
 end 
is it correct?
Want to improve your skill? Join the http://guleague.org!
User avatar
tw1sted
Private First Class
Private First Class
Posts: 849
Joined: Tue Feb 21, 2006 10:21 pm

Post by tw1sted »

no it should read:

for red team:

Code: Select all

weapon 
 position 0 902 65 
 type SW 
 trigger oncap 
 eventteam 1 
 end 
for blue team:

Code: Select all

weapon 
 position 0 -902 65 
 type SW 
 trigger oncap 
 eventteam 3 
 end 
I think at least
User avatar
Hannibal
Private First Class
Private First Class
Posts: 1073
Joined: Mon May 02, 2005 10:27 pm
Contact:

Post by Hannibal »

Position 900? thats a really big map..sure thats not supposed to be 90.2?
Games don't make people violent, lag does.
ImageImage
User avatar
Zelgadis
Private First Class
Private First Class
Posts: 638
Joined: Sat Jul 02, 2005 2:31 pm
Location: European Union

Post by Zelgadis »

yep, the map is big.

It's "The Two Tanks" (bzwar.bzflag.org:5155)

thx aha
Want to improve your skill? Join the http://guleague.org!
Post Reply