Results 1 to 9 of 9

Thread: how to make this map freeze-tag? (Aegypten)

  1. #1

    Default how to make this map freeze-tag? (Aegypten)

    Heey guys, how do i make this map ft?

    Code:
    // aegypten
    
    main:
    
    // set scoreboard messages
    setcvar "g_obj_alliedtext1" "Aegypten"
    setcvar "g_obj_alliedtext2" ""
    setcvar "g_obj_alliedtext3" ""
    setcvar "g_obj_axistext1" "FIXED"
    setcvar "g_obj_axistext2" ""
    setcvar "g_obj_axistext3" "<TWZ>Gold"
    
    setcvar "g_scoreboardpic" "aegypten"
    
    // ******************************************************** 
    // ******************* NEW CODE *************************** 
    // ******************************************************** 
    
       switch (waitthread global/libmef/util.scr::get_gametype) 
       { 
          case "ctf": 
          case "ftctf": 
          case "dem": 
          case "ftdem": 
             waitthread global/libmef/bases.scr::addbasepair "-336 -2807 64.13 0 East Barracks" "-39 1328 0.12 -90 West Well" 
             break 
       } 
    
    // ******************************************************** 
    // ***************END OF NEW CODE ************************* 
    // ******************************************************** 
    
    //<------------Automatic spawn creation by ^SoRrIdStRoKeR^------------>
    
    //<--------------------Team specific Spawns--------------------------->
    
    //<-------AXIS-------> tdm
    
    
    level.axis = spawn info_player_axis origin " -584 38 672" angle 350
    level.axis = spawn info_player_axis origin " 316 91 732" angle 178
    level.axis = spawn info_player_axis origin " -373 -1246 402" angle 164
    level.axis = spawn info_player_axis origin " -414 -1187 402" angle 90
    level.axis = spawn info_player_axis origin " -1731 165 242" angle 355
    level.axis = spawn info_player_axis origin " -1809 234 242" angle 138
    level.axis = spawn info_player_axis origin " -1722 617 285 " angle 86
    level.axis = spawn info_player_axis origin " -1636 -310 371" angle 269
    level.axis = spawn info_player_axis origin " -217 270 572" angle 264
    level.axis = spawn info_player_axis origin " -569 152 625" angle 260
    level.axis = spawn info_player_axis origin " -618 -148 732" angle 357
    level.axis = spawn info_player_axis origin " -182 -162 732" angle 173
    level.axis = spawn info_player_axis origin " -876 -500 402" angle 89
    level.axis = spawn info_player_axis origin " -1018 -197 402" angle 83
    level.axis = spawn info_player_axis origin " -584 -189 402" angle 82
    level.axis = spawn info_player_axis origin " 158 -175 402" angle 88
    
    //<-------ALLIES-------> tdm
    
    level.allied = spawn info_player_allied origin " 356 376 82" angle 266 
    level.allied = spawn info_player_allied origin " 166 279 82" angle 269
    level.allied = spawn info_player_allied origin " -69 -208 82" angle 175
    level.allied = spawn info_player_allied origin " -162 11 82" angle 171
    level.allied = spawn info_player_allied origin " -382 -645 82" angle 3
    level.allied = spawn info_player_allied origin " -820 -594 82" angle 182
    level.allied = spawn info_player_allied origin " -1179 -608 146" angle 276
    level.allied = spawn info_player_allied origin " -891 44 82" angle 85
    level.allied = spawn info_player_allied origin " -1063 256 82" angle 275
    level.allied = spawn info_player_allied origin " -425 289 82" angle 6
    level.allied = spawn info_player_allied origin " -278 729 82" angle 357
    level.allied = spawn info_player_allied origin " -626 -416 242" angle 88
    level.allied = spawn info_player_allied origin " 116 -431 242" angle 178
    level.allied = spawn info_player_allied origin " -769 -856 242" angle 1
    level.allied = spawn info_player_allied origin " -530 213 242" angle 4
    level.allied = spawn info_player_allied origin " -230 305 242" angle 98
    
    //free for all
    
    local.deathmatch = spawn info_player_deathmatch origin " -584 38 672" angle 350 
    local.deathmatch = spawn info_player_deathmatch origin " 316 91 732" angle 178 
    local.deathmatch = spawn info_player_deathmatch origin " -373 -1246 402" angle 164 
    local.deathmatch = spawn info_player_deathmatch origin " -414 -1187 402" angle 90 
    local.deathmatch = spawn info_player_deathmatch origin " -1731 165 242" angle 355 
    local.deathmatch = spawn info_player_deathmatch origin " -1809 234 242" angle 138 
    local.deathmatch = spawn info_player_deathmatch origin " -1722 617 285" angle 86 
    local.deathmatch = spawn info_player_deathmatch origin " -1636 -310 371" angle 269 
    local.deathmatch = spawn info_player_deathmatch origin " -217 270 572" angle 264 
    local.deathmatch = spawn info_player_deathmatch origin " -569 152 625" angle 260 
    local.deathmatch = spawn info_player_deathmatch origin " -618 -148 732" angle 357 
    local.deathmatch = spawn info_player_deathmatch origin " -182 -162 732" angle 173 
    local.deathmatch = spawn info_player_deathmatch origin " -876 -500 402" angle 89 
    local.deathmatch = spawn info_player_deathmatch origin " -1018 -197 402" angle 83 
    local.deathmatch = spawn info_player_deathmatch origin " -584 -189 402" angle 82 
    local.deathmatch = spawn info_player_deathmatch origin " 158 -175 402" angle 88 
    local.deathmatch = spawn info_player_deathmatch origin " 356 376 82" angle 266 
    local.deathmatch = spawn info_player_deathmatch origin " 166 279 82" angle 269 
    local.deathmatch = spawn info_player_deathmatch origin " -69 -208 82" angle 175 
    local.deathmatch = spawn info_player_deathmatch origin " -162 11 82" angle 171 
    local.deathmatch = spawn info_player_deathmatch origin " -382 -645 82" angle 3 
    local.deathmatch = spawn info_player_deathmatch origin " -820 -594 82" angle 182 
    local.deathmatch = spawn info_player_deathmatch origin " -1179 -608 146" angle 276 
    local.deathmatch = spawn info_player_deathmatch origin " -891 44 82" angle 85 
    local.deathmatch = spawn info_player_deathmatch origin " -1063 256 82" angle 275 
    local.deathmatch = spawn info_player_deathmatch origin " -425 289 82" angle 6 
    local.deathmatch = spawn info_player_deathmatch origin " 116 -431 242" angle 178 
    local.deathmatch = spawn info_player_deathmatch origin " -769 -856 242" angle 1 
    local.deathmatch = spawn info_player_deathmatch oorigin " -530 213 242" angle 4 
    local.deathmatch = spawn info_player_deathmatch origin " -230 305 242" angle 98 
    
    //<--------------------End of spawn creation----------------------------->
    
    
    
    	// call additional stuff for playing this map round based is needed
    	if(level.roundbased)
    		thread roundbasedthread
    		
    	level waitTill prespawn
    
    
    	//*** Precache Dm Stuff
    	exec global/DMprecache.scr
    
    	level.script = maps/dm/aegypten.scr
    	exec global/ambient.scr mohdm1
    
    	
    
    	level waittill spawn
    	$world farclipoverride -1
    
    end
    
    //-----------------------------------------------------------------------------
    
    roundbasedthread:
    
    	// Can specify different scoreboard messages for round based games here.
    	
    	level waitTill prespawn
    
    	level waittill spawn
    
    	// set the parameters for this round based match
    	level.dmrespawning = 0 // 1 or 0
    	level.dmroundlimit = 5 // round time limit in minutes
    	level.clockside = kills // set to axis, allies, kills, or draw
    
    	level waittill roundstart
    
    end

  2. #2

    Default

    you missing the ft word on the switch.

  3. #3

    Default

    this is the original code, so i think thats not the problem

  4. #4

    Default

    just try what i have say and tell me if works or not

  5. #5

  6. #6

    Default

    I now know why is not working.

    You have a mistake on the line 106:


    // aegypten

    main:

    // set scoreboard messages
    setcvar "g_obj_alliedtext1" "Aegypten"
    setcvar "g_obj_alliedtext2" ""
    setcvar "g_obj_alliedtext3" ""
    setcvar "g_obj_axistext1" "FIXED"
    setcvar "g_obj_axistext2" ""
    setcvar "g_obj_axistext3" "<TWZ>Gold"

    setcvar "g_scoreboardpic" "aegypten"

    // ********************************************************
    // ******************* NEW CODE ***************************
    // ********************************************************

    switch (waitthread global/libmef/util.scr::get_gametype)
    {
    case "ctf":
    case "ftctf":
    case "dem":
    case "ftdem":
    waitthread global/libmef/bases.scr::addbasepair "-336 -2807 64.13 0 East Barracks" "-39 1328 0.12 -90 West Well"
    break
    }

    // ********************************************************
    // ***************END OF NEW CODE *************************
    // ********************************************************

    //<------------Automatic spawn creation by ^SoRrIdStRoKeR^------------>

    //<--------------------Team specific Spawns--------------------------->

    //<-------AXIS-------> tdm


    level.axis = spawn info_player_axis origin " -584 38 672" angle 350
    level.axis = spawn info_player_axis origin " 316 91 732" angle 178
    level.axis = spawn info_player_axis origin " -373 -1246 402" angle 164
    level.axis = spawn info_player_axis origin " -414 -1187 402" angle 90
    level.axis = spawn info_player_axis origin " -1731 165 242" angle 355
    level.axis = spawn info_player_axis origin " -1809 234 242" angle 138
    level.axis = spawn info_player_axis origin " -1722 617 285 " angle 86
    level.axis = spawn info_player_axis origin " -1636 -310 371" angle 269
    level.axis = spawn info_player_axis origin " -217 270 572" angle 264
    level.axis = spawn info_player_axis origin " -569 152 625" angle 260
    level.axis = spawn info_player_axis origin " -618 -148 732" angle 357
    level.axis = spawn info_player_axis origin " -182 -162 732" angle 173
    level.axis = spawn info_player_axis origin " -876 -500 402" angle 89
    level.axis = spawn info_player_axis origin " -1018 -197 402" angle 83
    level.axis = spawn info_player_axis origin " -584 -189 402" angle 82
    level.axis = spawn info_player_axis origin " 158 -175 402" angle 88

    //<-------ALLIES-------> tdm

    level.allied = spawn info_player_allied origin " 356 376 82" angle 266
    level.allied = spawn info_player_allied origin " 166 279 82" angle 269
    level.allied = spawn info_player_allied origin " -69 -208 82" angle 175
    level.allied = spawn info_player_allied origin " -162 11 82" angle 171
    level.allied = spawn info_player_allied origin " -382 -645 82" angle 3
    level.allied = spawn info_player_allied origin " -820 -594 82" angle 182
    level.allied = spawn info_player_allied origin " -1179 -608 146" angle 276
    level.allied = spawn info_player_allied origin " -891 44 82" angle 85
    level.allied = spawn info_player_allied origin " -1063 256 82" angle 275
    level.allied = spawn info_player_allied origin " -425 289 82" angle 6
    level.allied = spawn info_player_allied origin " -278 729 82" angle 357
    level.allied = spawn info_player_allied origin " -626 -416 242" angle 88
    level.allied = spawn info_player_allied origin " 116 -431 242" angle 178
    level.allied = spawn info_player_allied origin " -769 -856 242" angle 1
    level.allied = spawn info_player_allied origin " -530 213 242" angle 4
    level.allied = spawn info_player_allied origin " -230 305 242" angle 98

    //free for all

    local.deathmatch = spawn info_player_deathmatch origin " -584 38 672" angle 350
    local.deathmatch = spawn info_player_deathmatch origin " 316 91 732" angle 178
    local.deathmatch = spawn info_player_deathmatch origin " -373 -1246 402" angle 164
    local.deathmatch = spawn info_player_deathmatch origin " -414 -1187 402" angle 90
    local.deathmatch = spawn info_player_deathmatch origin " -1731 165 242" angle 355
    local.deathmatch = spawn info_player_deathmatch origin " -1809 234 242" angle 138
    local.deathmatch = spawn info_player_deathmatch origin " -1722 617 285" angle 86
    local.deathmatch = spawn info_player_deathmatch origin " -1636 -310 371" angle 269
    local.deathmatch = spawn info_player_deathmatch origin " -217 270 572" angle 264
    local.deathmatch = spawn info_player_deathmatch origin " -569 152 625" angle 260
    local.deathmatch = spawn info_player_deathmatch origin " -618 -148 732" angle 357
    local.deathmatch = spawn info_player_deathmatch origin " -182 -162 732" angle 173
    local.deathmatch = spawn info_player_deathmatch origin " -876 -500 402" angle 89
    local.deathmatch = spawn info_player_deathmatch origin " -1018 -197 402" angle 83
    local.deathmatch = spawn info_player_deathmatch origin " -584 -189 402" angle 82
    local.deathmatch = spawn info_player_deathmatch origin " 158 -175 402" angle 88
    local.deathmatch = spawn info_player_deathmatch origin " 356 376 82" angle 266
    local.deathmatch = spawn info_player_deathmatch origin " 166 279 82" angle 269
    local.deathmatch = spawn info_player_deathmatch origin " -69 -208 82" angle 175
    local.deathmatch = spawn info_player_deathmatch origin " -162 11 82" angle 171
    local.deathmatch = spawn info_player_deathmatch origin " -382 -645 82" angle 3
    local.deathmatch = spawn info_player_deathmatch origin " -820 -594 82" angle 182
    local.deathmatch = spawn info_player_deathmatch origin " -1179 -608 146" angle 276
    local.deathmatch = spawn info_player_deathmatch origin " -891 44 82" angle 85
    local.deathmatch = spawn info_player_deathmatch origin " -1063 256 82" angle 275
    local.deathmatch = spawn info_player_deathmatch origin " -425 289 82" angle 6
    local.deathmatch = spawn info_player_deathmatch origin " 116 -431 242" angle 178
    local.deathmatch = spawn info_player_deathmatch origin " -769 -856 242" angle 1
    local.deathmatch = spawn info_player_deathmatch oorigin " -530 213 242" angle 4
    local.deathmatch = spawn info_player_deathmatch origin " -230 305 242" angle 98

    //<--------------------End of spawn creation----------------------------->



    // call additional stuff for playing this map round based is needed
    if(level.roundbased)
    thread roundbasedthread

    level waitTill prespawn


    //*** Precache Dm Stuff
    exec global/DMprecache.scr

    level.script = maps/dm/aegypten.scr
    exec global/ambient.scr mohdm1



    level waittill spawn
    $world farclipoverride -1

    end

    //-----------------------------------------------------------------------------

    roundbasedthread:

    // Can specify different scoreboard messages for round based games here.

    level waitTill prespawn

    level waittill spawn

    // set the parameters for this round based match
    level.dmrespawning = 0 // 1 or 0
    level.dmroundlimit = 5 // round time limit in minutes
    level.clockside = kills // set to axis, allies, kills, or draw

    level waittill roundstart

    end

  7. #7

    Default

    didnt fix the problem, it looks like when the round starts you spawn out of the map or smth

  8. #8

    Default

    theres another problem on the script.

    Remove this line:

    Code:
    $world farclipoverride -1

  9. #9

    Default

    You Rock Double!!! thanks!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •