mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
added tuning parameters for player collision and player hooking
This commit is contained in:
parent
e673e607dc
commit
e60236e304
|
@ -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++)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue