about summary refs log tree commit diff
path: root/src/game
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-10-20 19:58:11 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-10-20 19:58:11 +0000
commit06d48cd3da0c6dc4d030a3b3f15a33e66b3676e2 (patch)
tree88cee016910db3138fbc80bd7a8367d36aea15eb /src/game
parent3c463bf05dfafb4b019d2736c8352cb34839b4f8 (diff)
downloadzcatch-06d48cd3da0c6dc4d030a3b3f15a33e66b3676e2.tar.gz
zcatch-06d48cd3da0c6dc4d030a3b3f15a33e66b3676e2.zip
improved some the dummies a bit
Diffstat (limited to 'src/game')
-rw-r--r--src/game/server/hooks.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/game/server/hooks.cpp b/src/game/server/hooks.cpp
index 9a25d338..b4e5f1f4 100644
--- a/src/game/server/hooks.cpp
+++ b/src/game/server/hooks.cpp
@@ -60,6 +60,16 @@ void mods_client_predicted_input(int client_id, void *input)
 void mods_tick()
 {
 	game.tick();
+
+	if(config.dbg_dummies)
+	{
+		for(int i = 0; i < config.dbg_dummies ; i++)
+		{
+			NETOBJ_PLAYER_INPUT input = {0};
+			input.direction = (i&1)?-1:1;
+			game.players[MAX_CLIENTS-i-1]->on_predicted_input(&input);
+		}
+	}
 }
 
 void mods_snap(int client_id)