mirror of
https://github.com/qwertyuiop3/Storm.git
synced 2024-12-22 14:47:24 +08:00
latching workaround
This commit is contained in:
parent
319fed21a4
commit
f0e7cf6300
@ -108,20 +108,14 @@ void __thiscall Perform_Trace(void* Stack)
|
|||||||
{
|
{
|
||||||
if (Is_Shotgun == 1)
|
if (Is_Shotgun == 1)
|
||||||
{
|
{
|
||||||
__int8 Casual_Mode = 1;
|
__int8 Hardcore = Realism;
|
||||||
|
|
||||||
char* Mode = *(char**)((unsigned __int32)Client_Module + 8145092);
|
|
||||||
|
|
||||||
if (__builtin_strlen(Mode) > 8)
|
if (__builtin_strlen(Mode) > 8)
|
||||||
{
|
{
|
||||||
Casual_Mode = (Mode[8] != '8') + (Mode[9] != '2');
|
Hardcore = (Mode[8] == '8') + (Mode[9] == '2');
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
Casual_Mode += Realism ^ 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Casual_Mode == 2)
|
if (Hardcore == 0)
|
||||||
{
|
{
|
||||||
using Get_Bounds_Type = void(__thiscall*)(void* Collision, float* Start, float* Bounds);
|
using Get_Bounds_Type = void(__thiscall*)(void* Collision, float* Start, float* Bounds);
|
||||||
|
|
||||||
@ -243,8 +237,31 @@ void __thiscall Perform_Trace(void* Stack)
|
|||||||
Damage *= Multipliers[Group];
|
Damage *= Multipliers[Group];
|
||||||
}
|
}
|
||||||
|
|
||||||
//CTerrorPlayer::OnTakeDamage
|
__int32 Raw_Identifier = Get_Identifier(Entity, 1, 0);
|
||||||
//"AI controlled Chargers take 66% less damage while charging." (CTerrorPlayer::IsCustomAbilityActive)
|
|
||||||
|
if (Raw_Identifier == 99)
|
||||||
|
{
|
||||||
|
if (*(__int32*)((unsigned __int32)Entity + 2212) == 5)
|
||||||
|
{
|
||||||
|
Damage *= 1.f / 3.f;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (Raw_Identifier == 270) //or: Identifier == 270
|
||||||
|
{
|
||||||
|
/*
|
||||||
|
1. CTerrorPlayer::OnTakeDamage
|
||||||
|
2. CBaseEntity::TakeDamage
|
||||||
|
3. CTongue::OnOwnerTakeDamage
|
||||||
|
4. CTerrorPlayer::OnTakeDamage_Alive (m_customAbility)
|
||||||
|
5. NextBotPlayer<CTerrorPlayer>::OnTakeDamage_Alive
|
||||||
|
6. CBaseCombatCharacter::OnTakeDamage
|
||||||
|
7. CCSPlayer::OnTakeDamage
|
||||||
|
8. CTerrorPlayer::OnTakeDamage (recursive)
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (Damage != __builtin_inff())
|
if (Damage != __builtin_inff())
|
||||||
{
|
{
|
||||||
|
@ -51,9 +51,12 @@ void Predicton_Copy_Compare(void* Unknown_Parameter_1, void* Unknown_Parameter_2
|
|||||||
|
|
||||||
if (Within_Tolerance == 1)
|
if (Within_Tolerance == 1)
|
||||||
{
|
{
|
||||||
Copy_Label:
|
if ((256 - Field->Flat_Offset[0] ^ Field->Flat_Offset[0] - 244) != 12)
|
||||||
{
|
{
|
||||||
Byte_Manager::Copy_Bytes(0, (void*)((unsigned __int32)Predicton_Copy.Destination + Field->Flat_Offset[0]), Field->Bytes, (void*)((unsigned __int32)Predicton_Copy.Source + Field->Flat_Offset[1]));
|
Copy_Label:
|
||||||
|
{
|
||||||
|
Byte_Manager::Copy_Bytes(0, (void*)((unsigned __int32)Predicton_Copy.Destination + Field->Flat_Offset[0]), Field->Bytes, (void*)((unsigned __int32)Predicton_Copy.Source + Field->Flat_Offset[1]));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user