Code: Alles auswählen
game_manager
{
spawn
{
wm_axis_respawntime 5
wm_allied_respawntime 5
wm_number_of_objectives 3
wm_set_round_timelimit 45
// Objectives
// 1: Steal the Documenst
// 2: Escape with the Documents
// Stopwatch mode defending team (0=Axis, 1=Allies)
wm_set_defending_team 0
// Winner on expiration of round timer (0=Axis, 1=Allies)
wm_setwinner 0
wait 500
// Accum
accum 1 set 0
accum 2 set 0
accum 3 set 0
//setstate forwardspawn1_wobj invisible
setautospawn "Bauernhaus" 1
setautospawn "Bahnhof" 0
}
trigger allied_obj1
{
// change cvariable
accum 1 set 1
// check wenn runde gewonnen
trigger game_manager checkgame
}
trigger allied_obj2
{
// change cvariable
accum 2 set 1
// check wenn runde gewonnen
trigger game_manager checkgame
}
trigger allied_obj3
{
// change cvariable
accum 3 set 1
// check wenn runde gewonnen
trigger game_manager checkgame
}
trigger axis_object_stolen
{
// ??
}
trigger axis_object_returned
{
// ??
}
trigger checkgame
{
accum 1 abort_if_not_equal 1
accum 2 abort_if_not_equal 1
accum 3 abort_if_not_equal 1
// Set the round winner 0 axis 1 allies
wm_setwinner 1
// end the round
wm_endround
}
}
allied_obj1
{
spawn
{
}
death
{
trigger game_manager allied_obj1
}
}
allied_obj2
{
spawn
{
}
death
{
trigger game_manager allied_obj2
}
}
allied_obj3
{
spawn
{
}
death
{
trigger game_manager allied_obj3
}
}
/// Neu, die Flaggen
forwardspawn1_flag // Kaserne
{
spawn
{
accum 0 set 2 // Wer besitzt die Flagge: 0-Axis, 1-Allied, 2-Niemand
}
trigger axis_capture // Touched by an Axis player
{
accum 0 abort_if_equal 0 // Haben die Axen die Flagge schon?
accum 0 set 0 // Jetzt haben die Axen die Flagge!
setstate forwardspawn1_wobj default // benachtichtigt Commandmap-Maker
alertentity forwardspawn1_wobj // Switch command map marker
wm_announce "Axis reclaim the Kaserne!"
setautospawn "Kaserne" 0 // Set Axis to forward spawn
setautospawn "Bauernhaus" 1 // Set Allies to forward spawn
}
trigger allied_capture // Touched by an allied player
{
accum 0 abort_if_equal 1 // do Allies own flag?
accum 0 set 1 // Allies own the flag
setstate forwardspawn1_wobj default
alertentity forwardspawn1_wobj // Switch command map marker
wm_announce "Allies capture the Kaserne!"
setautospawn "Kaserne" 1 // Set Allies to forward spawn
setautospawn "Bahnhof" 0 // Name vom Standardspawn der Axis
}
trigger force_allied
{
accum 0 abort_if_equal 1 // Do Allies own the flag?
alertentity forwardspawn1_wobj // Switch command map marker
//alertentity forwardspawn1_spawns // Switch all spawnpoints
setautospawn "Bauernhaus" 1 // Set Allies to forward spawn
setautospawn "Bahnhof" 0
}
//trigger force_axis
//{
// accum 0 abort_if_equal 0 // Do Allies own the flag?
// alertentity forwardspawn1_wobj // Switch command map marker
// alertentity forwardspawn1_spawns // Switch all spawnpoints
// setautospawn "Bahnhof" 0 // Set Allies to forward spawn
//}
//trigger kill
//{
// remove // Remove self (flag model)
//}
}
forwardspawn2_flag // Bahnhof
{
spawn
{
accum 0 set 2 // Who owns flag: 0-Axis, 1-Allied
}
trigger axis_capture // Touched by an Axis player
{
accum 0 abort_if_equal 0 // do Axis own flag?
accum 0 set 0 // Axis own the flag
setstate forwardspawn2_wobj default
alertentity forwardspawn2_wobj // Switch command map marker
wm_announce "Axis reclaim the Forward Spawn Bahnhof!"
setautospawn "Bahnhof" 0 // Set Axis to forward spawn
setautospawn "Kaserne" 1 // Set Allies to forward spawn
}
trigger allied_capture // Touched by an allied player
{
accum 0 abort_if_equal 1 // do Allies own flag?
accum 0 set 1 // Allies own the flag
setstate forwardspawn2_wobj default
alertentity forwardspawn2_wobj // Switch command map marker
wm_announce "Allies capture the Forward Spawn Bahnhof!"
setautospawn "Dorf" 0 // Set Axis to forward spawn
setautospawn "Bahnhof" 1 // Set Allies to forward spawn
}
//trigger force_allied
//{
// accum 0 abort_if_equal 1 // Do Allies own the flag?
// alertentity forwardspawn1_wobj // Switch command map marker
// alertentity forwardspawn1_spawns // Switch all spawnpoints
// setautospawn "Bahnhof" 1 // Set Allies to forward spawn
//}
//trigger kill
//{
// remove // Remove self (flag model)
//}
}
forwardspawn3_flag // Dorf
{
spawn
{
accum 0 set 2 // Who owns flag: 0-Axis, 1-Allied
}
trigger axis_capture // Touched by an Axis player
{
accum 0 abort_if_equal 0 // do Axis own flag?
accum 0 set 0 // Axis own the flag
setstate forwardspawn3_wobj default
alertentity forwardspawn3_wobj // Switch command map marker
wm_announce "Axis reclaim the Forward Spawn Dorf!"
setautospawn "Dorf" 0 ///"Forward Spawn" 0 // Set Axis to forward spawn
setautospawn "Bahnhof" 1 // Set Allies to forward spawn
}
trigger allied_capture // Touched by an allied player
{
accum 0 abort_if_equal 1 // do Allies own flag?
accum 0 set 1 // Allies own the flag
setstate forwardspawn3_wobj default
alertentity forwardspawn3_wobj // Switch command map marker
wm_announce "Allies capture the Forward Spawn Dorf!"
setautospawn "Dorf" 1 // Set Allies to forward spawn
setautospawn "Casino" 0 // Name vom Standardspawn der Axis
}
//trigger force_allied
//{
// accum 0 abort_if_equal 1 // Do Allies own the flag?
// alertentity forwardspawn3_wobj // Switch command map marker
// alertentity forwardspawn3_spawns // Switch all spawnpoints
// setautospawn "Dorf" 1 // Set Allies to forward spawn
//}
//trigger kill
//{
// remove // Remove self (flag model)
//}
}
ziel des scripts ist es die axen flagge für flagge zurückzudrängen