#Sven-FF (Sven Co-op Friendly Fire)
1 messages · Page 1 of 1 (latest)
Nice.
However, found some more problems.
sporegrenadeis not dealing any damage.
To fix that:
{
g_Hooks.RegisterHook( Hooks::Weapon::WeaponSecondaryAttack, @WeaponSecondaryAttack );
}
const array<string> PROJECTILE_ENTS =
{
"rpg_rocket",
"sporegrenade"
};
// Hooks
HookReturnCode WeaponPrimaryAttack( CBasePlayer@ pPlayer, CBasePlayerWeapon@ pWeapon )
{
if( cvar_enabled.GetInt() != 1 )
return HOOK_CONTINUE;
CBaseEntity@ pEntity = null;
while( (@pEntity = g_EntityFuncs.FindEntityByClassname(pEntity, "*")) !is null )
{
if( PROJECTILE_ENTS.find(pEntity.GetClassname()) == -1 )
continue;
trackedEntities.insertLast(pEntity.entindex());
trackedEntitiesPosition.insertLast(pEntity.GetOrigin());
trackedEntitiesOwner.insertLast(pPlayer.entindex());
trackedEntitiesType.insertLast("RPG");
}
return HOOK_CONTINUE;
}
HookReturnCode WeaponSecondaryAttack( CBasePlayer@ pPlayer, CBasePlayerWeapon@ pWeapon )
{
WeaponPrimaryAttack(pPlayer, pWeapon);
return HOOK_CONTINUE;
}```
2) If you throw Satchel charges by secondary attack and pick it back up nearby a player or NPC, it will act like it exploded and kill the entities (NPCs, players) around it. Just like how you explained about the Tripmine.
3) Displacer portals doesn't deal any radius damage. Only direct hit.
Setting as_command ff.npc to 0.0 will prevent friendly npcs from taking any damage. Includiing from enemy npcs
good job sebastian 😄
gonna add this plugin secretly while playing with my friends 
how to troll your friends 101
pvp? think you can try your luck?
co-op deathmatch hmm