limiting like omaha
Moderator: Moderators
-
NACF URBAN
- Corporal
- Posts: 26
- Joined: Fri Jun 11, 2004 5:00 pm
limiting like omaha
i need to know how to limit team boundarys like in the omaha maps. if this has anything to do with scripts youll have to rujn me thru it
-
NACF-URBAN
- Sergeant
- Posts: 67
- Joined: Tue Jun 15, 2004 2:45 am
-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
- Contact:
-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
- Contact:
Well here is a quick one that should work once you calibrate the origins and sizes of the 2 triggers:
... put it last in the map script ( after the last end ).
Activate it by putting this after level waittil roundstart:
Code: Select all
spawn_axis_kill_triggers:
// Spawn the trigger that will warn the Axis
// ( preferably on the ridge )
local.trigger = spawn trigger_multiple "setthread" "warn_axis"
// example values:
local.trigger.origin = ( 0.0 0.0 0.0 )
// example values:
local.trigger setsize ( -50 -50 -50 ) ( 50 50 50 )
// Spawn the trigger that will kill the Axis
// ( preferably just below the ridge )
local.trigger = spawn trigger_multiple "setthread" "kill_axis"
// example values:
local.trigger.origin = ( 100.0 0.0 0.0 )
// example values:
local.trigger setsize ( -50 -50 -50 ) ( 50 50 50 )
end
warn_axis:
// parm.other is the triggerer
if(parm.other.dmteam == axis) {
if(parm.other.i_have_been_warned != 1) {
parm.other.i_have_been_warned = 1
parm.other iprint "No Axis on the beach!" 1
}
}
end
kill_axis:
// parm.other is the triggerer
if(parm.other.dmteam == axis) {
parm.other stufftext "say I am a stupid and dead Axis."
wait 2 // make him wait for it :)
parm.other hurt 666
}
endActivate it by putting this after level waittil roundstart:
Code: Select all
thread spawn_axis_kill_triggers
