-
Автор темы
- #1
Сместилась enum ECommunicationEvent, думаю сами обновите
ECommunicationEvent:
enum ECommunicationEvent
{
eCE_None = 0x0,
eCE_Quickchat_First = 0x1,
eCE_SayNeedMedic = 0x1,
eCE_SayNeedAmmo = 0x2,
eCE_SayNeedArmor = 0x3,
eCE_SayFollowMe = 0x4,
eCE_SayCoverMe = 0x5,
eCE_SayReady = 0x6,
eCE_SayEnemySpotted = 0x7,
eCE_SaySectorClear = 0x8,
eCE_SayRegroup = 0x9,
eCE_SayKeepMoving = 0xA,
eCE_SayMoveOut = 0xB,
eCE_SayFallBack = 0xC,
eCE_SayAffirmative = 0xD,
eCE_SayNegative = 0xE,
eCE_SayEnemyDown = 0xF,
eCE_SayTaunt = 0x10,
eCE_Quickchat_AfterLast = 0x11,
eCE_SayOverHere = 0x11,
eCE_SendingEnemyCoord = 0x12,
eCE_EnemySpotted = 0x13,
eCE_ClaymoreSpotted = 0x14,
eCE_GrenadeSpotted = 0x15,
eCE_HelpToPush = 0x16,
eCE_LiftMeOn = 0x17,
eCE_FollowMe = 0x18,
eCE_FireInTheHole = 0x19,
eCE_FlagPickup = 0x1A,
eCE_FlagDrop = 0x1B,
eCE_FlagReturn = 0x1C,
eCE_CaptureStart = 0x1D,
eCE_CaptureEnd = 0x1E,
eCE_BombPickup = 0x1F,
eCE_BombDrop = 0x20,
eCE_BombDropManual = 0x21,
eCE_BombPlant = 0x22,
eCE_BombDefuse = 0x23,
eCE_StopBombDefuse = 0x24,
eCE_EnemyDown = 0x25,
eCE_DeathRattle = 0x26,
eCE_OutOfAmmo = 0x27,
eCE_TakeAmmo = 0x28,
eCE_ResupplyAmmo = 0x29,
eCE_ResupplyMedkit = 0x2A,
eCE_ResupplyWeapons = 0x2B,
eCE_HealingSelf = 0x2C,
eCE_RepairingSelf = 0x2D,
eCE_HealingTeammate = 0x2E,
eCE_RepairingTeammate = 0x2F,
eCE_BeingHealed = 0x30,
eCE_BeingRepaired = 0x31,
eCE_ImDown = 0x32,
eCE_SniperSpotted = 0x33,
eCE_SoldierSpotted = 0x34,
eCE_ShieldBearerSpotted = 0x35,
eCE_IronManSpotted = 0x36,
eCE_SniperDown = 0x37,
eCE_SoldierDown = 0x38,
eCE_ShieldBearerDown = 0x39,
eCE_IronManDown = 0x3A,
eCE_EnemyDamaged = 0x3B,
eCE_PickedReward = 0x3C,
eCE_PickedScore = 0x3D,
eCE_PickedIngameCurrency = 0x3E,
eCE_ClassSelectedIngame = 0x3F,
eCE_TeammateProtected = 0x40,
eCE_CoreStartUse = 0x41,
eCE_AIKnockBack = 0x42,
eCE_PlayerEnteredSession = 0x43,
eCE_PlayerLeftSession = 0x44,
eCE_Last = 0x45,
};
Вызов:
class CGameRules
{
public:
void SendCommunicationEvent(EntityId playerId, ECommunicationEvent events, EntityId entityId = 0) { VirtualFunction<void(__fastcall*)(CGameRules*, ECommunicationEvent, EntityId, EntityId, const char*, int)>(this, 0x2E8 / 8)(this, events, playerId, entityId, u8"", 0); }
};
Call:
if (IsFocused && GetAsyncKeyState(KeyCodes::PAGE_UP) & 1)
{
pGameFramework->GetGameRules()->SendCommunicationEvent(mActor->GetEntityId(), ECommunicationEvent::eCE_BombDefuse);
}
if (IsFocused && GetAsyncKeyState(KeyCodes::END) & 1)
{
pGameFramework->GetGameRules()->SendCommunicationEvent(mActor->GetEntityId(), ECommunicationEvent::eCE_BombPlant);
}
if (IsFocused && GetAsyncKeyState(KeyCodes::HOME) & 1)
{
pGameFramework->GetGameRules()->SendCommunicationEvent(mActor->GetEntityId(), ECommunicationEvent::eCE_BombDrop);
}
Последнее редактирование: