about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2009-01-11 14:40:45 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2009-01-11 14:40:45 +0000
commite60236e3046f7012efc7232f490207aeb498b598 (patch)
tree43a2a32e0056e81e720ddab42f29a2e6a09fce6f
parente673e607dce91586ab1f09d01b571a9ae65e73c5 (diff)
downloadzcatch-e60236e3046f7012efc7232f490207aeb498b598.tar.gz
zcatch-e60236e3046f7012efc7232f490207aeb498b598.zip
added tuning parameters for player collision and player hooking
-rw-r--r--src/game/gamecore.cpp4
-rw-r--r--src/game/tuning.hpp3
2 files changed, 5 insertions, 2 deletions
diff --git a/src/game/gamecore.cpp b/src/game/gamecore.cpp
index 66f0ee0a..ceb63be3 100644
--- a/src/game/gamecore.cpp
+++ b/src/game/gamecore.cpp
@@ -312,7 +312,7 @@ void CHARACTER_CORE::tick(bool use_input)
 		}
 
 		// Check against other players first
-		if(world)
+		if(world && world->tuning.player_hooking)
 		{
 			float dist = 0.0f;
 			for(int i = 0; i < MAX_CLIENTS; i++)
@@ -407,7 +407,7 @@ void CHARACTER_CORE::tick(bool use_input)
 		}
 	}
 	
-	if(world)
+	if(world && world->tuning.player_collision)
 	{
 		for(int i = 0; i < MAX_CLIENTS; i++)
 		{
diff --git a/src/game/tuning.hpp b/src/game/tuning.hpp
index 210dbe96..4554a8eb 100644
--- a/src/game/tuning.hpp
+++ b/src/game/tuning.hpp
@@ -36,3 +36,6 @@ MACRO_TUNING_PARAM(laser_bounce_delay, 150)
 MACRO_TUNING_PARAM(laser_bounce_num, 1)
 MACRO_TUNING_PARAM(laser_bounce_cost, 0)
 MACRO_TUNING_PARAM(laser_damage, 5)
+
+MACRO_TUNING_PARAM(player_collision, 1)
+MACRO_TUNING_PARAM(player_hooking, 1)