#include <common/effects/all.qh>
#include "bot/api.qh"
#include "g_hook.qh"
+#include <server/gamelog.qh>
#include <server/mutators/_mod.qh>
#include "teamplay.qh"
#include "scores.qh"
#include "../common/playerstats.qh"
#include "../common/teams.qh"
#include "../common/util.qh"
+#include <common/gamemodes/_mod.qh>
#include <common/gamemodes/rules.qh>
#include <common/weapons/_all.qh>
#include "../lib/csqcmodel/sv_model.qh"
damage = 0;
else if(attacker != targ)
{
- if(autocvar_teamplay_mode == 3)
+ if(autocvar_teamplay_mode == 2)
+ {
+ if(IS_PLAYER(targ) && !IS_DEAD(targ))
+ {
+ attacker.dmg_team = attacker.dmg_team + damage;
+ complainteamdamage = attacker.dmg_team - autocvar_g_teamdamage_threshold;
+ }
+ }
+ else if(autocvar_teamplay_mode == 3)
damage = 0;
else if(autocvar_teamplay_mode == 4)
{