#Sven-FF (Sven Co-op Friendly Fire)

1 messages · Page 1 of 1 (latest)

graceful night
#

absolute pandemonium
will definitely try it out, thanks sebastian

vast pond
#

Nice.
However, found some more problems.

  1. sporegrenade is 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.
uncut cipher
#

Setting as_command ff.npc to 0.0 will prevent friendly npcs from taking any damage. Includiing from enemy npcs

tough escarp
#

good job sebastian 😄

midnight tendon
#

gonna add this plugin secretly while playing with my friends pepegambage

royal solstice
#

how to troll your friends 101

old lily
#

pvp? think you can try your luck?

quaint yew
#

co-op deathmatch hmm

quaint yew
#

because that's what people asking for

#

people wants co-op deathmatch or team deathmach