~armagetronad-ap/armagetronad/BattleMania

« back to all changes in this revision

Viewing changes to src/tron/game.php

  • Committer: zodiacsohma1 at gmail
  • Date: 2014-02-19 05:55:57 UTC
  • Revision ID: zodiacsohma1@gmail.com-20140219055557-kpvbnge0idymfvo3
Updated battle_mania.cfg
Added a automatic respawn point to players for the CTF game mode.
Added a if statement to now allow processing of player positions during zombie challenge.
Increased the focus factor of attacks to 3 and adjusted attack messages.
Added attack learning code to bag when first created to immediately learn basic attacks.
Modified server.sh to adjust it to the use of a new method.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
        con("0xffdd88Survive longer to earn higher exp and level up!");
48
48
        displayZombieRanks(true);
49
49
    }
 
50
    elseif (Base::$base->game_mode == 2)
 
51
    {
 
52
        sendCommand("ANNOUNCE", "0xffff7fCapture The Flag0x88ff88... 0x88ff22ACTIVATED!");
 
53
    }
50
54
    elseif (Base::$base->game_mode == 3)
51
55
    {
52
56
        sendCommand("ANNOUNCE", "0xff3333Kill 0xff9900The 0x00aaffKing... 0x88ff22ACTIVATED!");
66
70
 
67
71
        sendCommand("COLLAPSE_ALL");
68
72
    }
 
73
 
 
74
    /*
 
75
    delayCommand(Base::$base->TIMER->gameTimer() + 5, "CONSOLE_MESSAGE", "0xaa00ff> 0xf8f8f8-attack 0x88ff88name 0xffff77to execute a energy attack.");
 
76
    delayCommand(Base::$base->TIMER->gameTimer() + 5, "CONSOLE_MESSAGE", "0xaa00ff> 0xf8f8f8!attack 0x88ff88ls 0xffff77to show the attacks you have learnt.");
 
77
    delayCommand(Base::$base->TIMER->gameTimer() + 5, "CONSOLE_MESSAGE", "0xaa00ff> 0xf8f8f8-item 0x88ff88name 0xffff77to use an item in your collection.");
 
78
    delayCommand(Base::$base->TIMER->gameTimer() + 5, "CONSOLE_MESSAGE", "0xaa00ff> 0xf8f8f8!items 0xffff77list the items in your inventory.");
 
79
    */
69
80
}
70
81
 
71
82
//!> On finish of the round
103
114
     *  read through all incoming ladderlog events that occurred
104
115
     *  during gameplay
105
116
     */
106
 
     //sendCommand("CLEAR_LADDERLOG");
 
117
    sendCommand("CLEAR_LADDERLOG");
 
118
 
 
119
    con("0xff00aa# 0x8f8fffSee 0xf9f9f9/help 0x8f8ffffor detailed explanations.");
107
120
 
108
121
    //  controls how the server will handle external commands issued by the script
109
122
    $wait_for_external_script = getSetting("WAIT_FOR_EXTERNAL_SCRIPT");
110
123
    if ($wait_for_external_script->value)
111
124
    {
112
125
        sendCommand("WAIT_FOR_EXTERNAL_SCRIPT", 0);
113
 
        sleep(7);
 
126
        sleep(3);
114
127
        sendCommand("WAIT_FOR_EXTERNAL_SCRIPT", 1);
115
128
    }
116
129
}
133
146
         * 2 - capture the flag soccer
134
147
         * 3 - kill the king
135
148
         */
136
 
        $mode_change_max  = getSetting("MODE_CHANGE_MAX");
 
149
        $mode_change_max = getSetting("MODE_CHANGE_MAX");
137
150
 
138
151
        //  set the game mode to load
139
152
        if ($mode_change_rand->value)