This commit is contained in:
BotoX 2019-10-08 18:39:31 +02:00
parent 0f0846163f
commit 7e5b960cf3
4 changed files with 22 additions and 9 deletions

View File

@ -8,16 +8,22 @@
"z2530359" // Balrog
{
"KnockbackScale" "0.0"
"KillPush" "0"
"NoSlowDown" "1"
}
"z11197" // Titan
{
"KnockbackScale" "0.0"
"KillPush" "0"
"NoSlowDown" "1"
}
"z1910977" // Pyramid Head
{
"KnockbackScale" "0.0"
"KillPush" "0"
"NoSlowDown" "1"
}
}

View File

@ -6,6 +6,7 @@
#include <sdktools>
#include <dhooks>
#include <cstrike>
#include <CSSFixes>
#include <zombiereloaded>
public Plugin myinfo =
@ -57,6 +58,13 @@ public void OnPluginStart()
g_hActiveWeapon = FindSendPropInfo("CBaseCombatCharacter", "m_hActiveWeapon");
if(g_hActiveWeapon == -1)
SetFailState("Couldn't find CBaseCombatCharacter::m_hActiveWeapon");
PhysboxToClientMap(g_iPhysboxToClient, true);
}
public void OnPluginEnd()
{
PhysboxToClientMap(g_iPhysboxToClient, false);
}
public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max)
@ -155,7 +163,7 @@ public void OnWeaponEquipped(int client, int entity)
ZR_SetClientKnockbackScale(client, fKnockbackScale);
float fKnockbackMaxForce = g_Config.GetFloat("KnockbackMaxForce", 0.0);
if(fKnockbackMaxForce >= 0.0)
if(fKnockbackMaxForce > 0.0)
ZR_SetClientKnockbackMaxForce(client, fKnockbackMaxForce);
float fKnockbackMaxVel = g_Config.GetFloat("KnockbackMaxVel", -1.0);

View File

@ -627,18 +627,13 @@ public void OnEntitySpawned(int entity, const char[] classname)
if(!IsValidEntity(entity))
return;
/*
if(!strncmp(classname, "func_physbox", 12))
{
int iParent = GetEntPropEnt(entity, Prop_Data, "m_pParent");
if(iParent != INVALID_ENT_REFERENCE)
{
AddEntityForLagCompensation(entity, false);
}
AddEntityForLagCompensation(entity, false);
return;
}
*/
if(!(StrEqual(classname, "trigger_hurt")))
return;

View File

@ -26,6 +26,10 @@ native void FilterClientEntityMap(char map[MAXPLAYERS + 1][2048], bool set);
// Block triggers TriggerMoved from touching any client by setting it to 1 for the entity index.
native void FilterTriggerTouchPlayers(char map[2048], bool set);
// Map entities to client entity in FireBullets/SwingOrStab ShouldHitEntity.
// Aka. shoot and knife through physboxes that are parented to teammates (white knight, gandalf, horse, etc.)
native void PhysboxToClientMap(char map[2048], bool set);
public Extension __ext_CSSFixes =
{
name = "CSSFixes",