return;
if(frags_player)
- UpdateFrags(player, frags_player);
+ GameRules_scoring_add_team(player, SCORE, frags_player);
if(key && key.owner && frags_owner)
- UpdateFrags(key.owner, frags_owner);
+ GameRules_scoring_add_team(key.owner, SCORE, frags_owner);
if(!autocvar_sv_eventlog) //output extra info to the console or text file
return;
#include <server/weapons/weaponsystem.qh>
#include <server/world.qh>
-void UpdateFrags(entity player, int f)
-{
- GameRules_scoring_add_team(player, SCORE, f);
-}
-
void GiveFrags(entity attacker, entity targ, float f, int deathtype, .entity weaponentity)
{
// TODO route through PlayerScores instead
attacker.totalfrags += f;
if(f)
- UpdateFrags(attacker, f);
+ GameRules_scoring_add_team(attacker, SCORE, f);
}
string AppendItemcodes(string s, entity player)
float IsFlying(entity a);
-void UpdateFrags(entity player, int f);
-
// NOTE: f=0 means still count as a (positive) kill, but count no frags for it
void W_SwitchWeapon_Force(Player this, Weapon w, .entity weaponentity);
void GiveFrags (entity attacker, entity targ, float f, int deathtype, .entity weaponentity);