Where exactly is the 'victory code in the engine'?
by Marvin Hawkins · in Torque Game Engine · 02/04/2006 (12:27 am) · 3 replies
Hello,
I understand that torque is a multiplayer engine but where is the code that determines victory/loss conditions?
For example where can I find code that switches the level after a player has 3 kills? Thanks for helping a newb in need. in advance.
I understand that torque is a multiplayer engine but where is the code that determines victory/loss conditions?
For example where can I find code that switches the level after a player has 3 kills? Thanks for helping a newb in need. in advance.
#2
I changed the aforementioned code from
to:
It was a small change but I mainly wanted to see what would happen when the number of kills was reached. But nothing happend. The AI player just respawned and the game continued. What do I have to do to get it to cycle to another map?
02/05/2006 (8:48 pm)
Okay i found it in the server/scripts/game.csI changed the aforementioned code from
// When a client score reaches this value, the game is ended. $Game::EndGameScore = 10;
to:
// When a client score reaches this value, the game is ended. $Game::EndGameScore = 01;
It was a small change but I mainly wanted to see what would happen when the number of kills was reached. But nothing happend. The AI player just respawned and the game continued. What do I have to do to get it to cycle to another map?
#3
02/06/2006 (1:12 pm)
AI doesn't count as a kill.
Torque Owner Josh Moore