mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-28 08:27:22 +00:00
fix players using non-car skills in a race
This commit is contained in:
parent
0348db72a5
commit
efa658bc31
@ -25,6 +25,7 @@
|
|||||||
#include "LeaderboardManager.h"
|
#include "LeaderboardManager.h"
|
||||||
#include "dZoneManager.h"
|
#include "dZoneManager.h"
|
||||||
#include "CDActivitiesTable.h"
|
#include "CDActivitiesTable.h"
|
||||||
|
#include "eStateChangeType.h"
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
|
|
||||||
#ifndef M_PI
|
#ifndef M_PI
|
||||||
@ -77,6 +78,9 @@ void RacingControlComponent::OnPlayerLoaded(Entity* player) {
|
|||||||
|
|
||||||
m_LoadedPlayers++;
|
m_LoadedPlayers++;
|
||||||
|
|
||||||
|
// not live accurate to stun the player but prevents them from using skills during the race that are not meant to be used.
|
||||||
|
GameMessages::SendSetStunned(player->GetObjectID(), eStateChangeType::PUSH, player->GetSystemAddress(), LWOOBJID_EMPTY, true, true, true, true, true, true, true, true, true);
|
||||||
|
|
||||||
LOG("Loading player %i",
|
LOG("Loading player %i",
|
||||||
m_LoadedPlayers);
|
m_LoadedPlayers);
|
||||||
m_LobbyPlayers.push_back(player->GetObjectID());
|
m_LobbyPlayers.push_back(player->GetObjectID());
|
||||||
|
Loading…
Reference in New Issue
Block a user