Quote:
Originally Posted by Krevik
Remember not to use this plugin with l4d2 - it breaks physics therefore tank hittables are flying totally random
|
Because in l4d2, you have to check if attacker is survivor.
PHP Code:
public MRESReturn Weapon_ShootPosition_Post(int client, Handle hReturn)
{
if (IsSurvivor(client))
{
// At this point we always want to use our old origin.
DHookSetReturnVector(hReturn, g_vecOldWeaponShootPos[client]);
return MRES_Supercede;
}
return MRES_Ignored;
}
public bool IsSurvivor(client)
{
return client > 0 && client <= MaxClients && IsClientInGame(client) && GetClientTeam(client) == 2;
}
firebulletsfix for L4D1&2 --> click me to download
__________________