mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
for some reason hooking wasnt masked propley.
This commit is contained in:
parent
422b6c7c0d
commit
8ff2b1a95f
|
@ -938,7 +938,7 @@ void CCharacter::HandleTiles(int Index)
|
|||
{//dbg_msg("num","%d",++num);
|
||||
CGameControllerDDRace* Controller = (CGameControllerDDRace*)GameServer()->m_pController;
|
||||
int MapIndex = Index;
|
||||
int PureMapIndex = GameServer()->Collision()->GetPureMapIndex(m_Pos);
|
||||
//int PureMapIndex = GameServer()->Collision()->GetPureMapIndex(m_Pos);
|
||||
float Offset = 4;
|
||||
int MapIndexL = GameServer()->Collision()->GetPureMapIndex(vec2(m_Pos.x + (m_ProximityRadius/2)+Offset,m_Pos.y));
|
||||
int MapIndexR = GameServer()->Collision()->GetPureMapIndex(vec2(m_Pos.x - (m_ProximityRadius/2)-Offset,m_Pos.y));
|
||||
|
@ -1275,13 +1275,13 @@ void CCharacter::TickDefered()
|
|||
}
|
||||
|
||||
int Events = m_Core.m_TriggeredEvents;
|
||||
int Mask = CmaskAllExceptOne(m_pPlayer->GetCID());
|
||||
//int Mask = CmaskAllExceptOne(m_pPlayer->GetCID());
|
||||
|
||||
if(Events&COREEVENT_GROUND_JUMP) GameServer()->CreateSound(m_Pos, SOUND_PLAYER_JUMP, Mask);
|
||||
if(Events&COREEVENT_GROUND_JUMP) GameServer()->CreateSound(m_Pos, SOUND_PLAYER_JUMP, Teams()->TeamMask(Team()));
|
||||
|
||||
if(Events&COREEVENT_HOOK_ATTACH_PLAYER) GameServer()->CreateSound(m_Pos, SOUND_HOOK_ATTACH_PLAYER, CmaskAll());
|
||||
if(Events&COREEVENT_HOOK_ATTACH_GROUND) GameServer()->CreateSound(m_Pos, SOUND_HOOK_ATTACH_GROUND, Mask);
|
||||
if(Events&COREEVENT_HOOK_HIT_NOHOOK) GameServer()->CreateSound(m_Pos, SOUND_HOOK_NOATTACH, Mask);
|
||||
if(Events&COREEVENT_HOOK_ATTACH_PLAYER) GameServer()->CreateSound(m_Pos, SOUND_HOOK_ATTACH_PLAYER, Teams()->TeamMask(Team()));
|
||||
if(Events&COREEVENT_HOOK_ATTACH_GROUND) GameServer()->CreateSound(m_Pos, SOUND_HOOK_ATTACH_GROUND, Teams()->TeamMask(Team()));
|
||||
if(Events&COREEVENT_HOOK_HIT_NOHOOK) GameServer()->CreateSound(m_Pos, SOUND_HOOK_NOATTACH, Teams()->TeamMask(Team()));
|
||||
|
||||
|
||||
if(m_pPlayer->GetTeam() == TEAM_SPECTATORS)
|
||||
|
|
Loading…
Reference in a new issue