
Xoronatus
Joined: Dec 6, 2010
Taking a break
|
Posted: May 31, 2011 11:05 PM
Msg. 1 of 10
So let's say I have two scripst like these:
(object_create box) )
and
(object_create blob) )
Can I make it so taht if the game is played on Capture the Flag, it will run the first script. But if the game is played on Slayer, it will run the second script instead?
|
|
|

kirby_422
Joined: Jan 22, 2006
Apparently public enemy number 1?
|
Posted: Jun 1, 2011 12:31 AM
Msg. 2 of 10
Setup vehicles spawned by globals.globals rather than scripts. setup one warthog that is slayer default and slayer allowed, but no other game type. Then you can either check on startup that it is in a volume trigger at its spawn area, or check its health to see if its anything but -1 (-1 means it doesn't exist) Do the same for CTF, etc, to control scripts per gametype. Of course, if they run a custom game type with 0 vehicles, then none of your scripts activate.
|
|
|

chrisk123999
Joined: Aug 10, 2008
=CE= Chris [Captain] [=]
|
Posted: Jun 1, 2011 10:21 AM
Msg. 3 of 10
Or better yet, make an item collection with an gun the explodes (coldsnap has a good one) and just have the item collection spawn on specific gametypes to kill certain bipeds. Then it's just a simple script to sleep until that biped is dead.
|
|
|

Xoronatus
Joined: Dec 6, 2010
Taking a break
|
Posted: Jun 1, 2011 11:15 PM
Msg. 4 of 10
Ok, how about, can you make it so that if the player is on the red team, it will execute some scripted commands? or if he's on the blue team?
|
|
|

chrisk123999
Joined: Aug 10, 2008
=CE= Chris [Captain] [=]
|
Posted: Jun 1, 2011 11:49 PM
Msg. 5 of 10
Impossible.
|
|
|

kirby_422
Joined: Jan 22, 2006
Apparently public enemy number 1?
|
Posted: Jun 1, 2011 11:57 PM
Msg. 6 of 10
Quote: --- Original message by: Xoronatus Ok, how about, can you make it so that if the player is on the red team, it will execute some scripted commands? or if he's on the blue team? Which player?... Anyways, have the only real spawn point per team inside a box outside the map, then when they are in a trigger volume there, activate that script while moving them to a random cutscene flag in the actual map.
|
|
|

chrisk123999
Joined: Aug 10, 2008
=CE= Chris [Captain] [=]
|
Posted: Jun 2, 2011 11:19 AM
Msg. 7 of 10
That only works when whatever you want to do it right at the start and only on CTF.
|
|
|

kirby_422
Joined: Jan 22, 2006
Apparently public enemy number 1?
|
Posted: Jun 2, 2011 01:19 PM
Msg. 8 of 10
Quote: --- Original message by: chrisk123999 That only works when whatever you want to do it right at the start and only on CTF. Wrong, when you enter that volume trigger, you can attach a vehicle to the player that is used to discribe red. When one of these red vehicles is moved to somewhere else in the map, at that point you can trigger that a red player is there.
|
|
|

chrisk123999
Joined: Aug 10, 2008
=CE= Chris [Captain] [=]
|
Posted: Jun 2, 2011 02:44 PM
Msg. 9 of 10
True. But I doubt anything he wants is simple trigger volume stuff.
|
|
|

SlappyThePirate
Joined: Aug 24, 2009
You are irritating, I'll release nothing
|
Posted: Jun 3, 2011 03:53 PM
Msg. 10 of 10
Still, what about team slayer? Say I wanted to make a script that always spawns blue team by blue base and red team by red base for team slayer. I'm thinking AI?
|
|
|