}
}
+ if(!cvar("g_overkill") && self.cow && cow_allowed)
+ defaultmodel = "models/player/cow.md3";
+
if(defaultmodel != "")
{
if (defaultmodel != self.model)
}
else
{
+ if(substring(msgin, 0, 3) == "moo")
+ {
+ source.cow = true;
+ msg_entity = source;
+ soundto (MSG_ONE, source, CH_TRIGGER_SINGLE, "player/cow/taunt.wav", VOL_BASE, ATTEN_NONE);
+ }
+
if(substring(msgin, 0, 3) == "/me")
{
//msgin = strreplace("/me", "", msgin);
void PlayerDamage (entity inflictor, entity attacker, float damage, int deathtype, vector hitloc, vector force);
.float muted; // to be used by prvm_edictset server playernumber muted 1
+.bool cow;
+bool cow_allowed;
float Say(entity source, float teamsay, entity privatesay, string msgin, float floodcontrol);
// message "": do not say, just test flood control
// return value:
precache_playermodel("models/player/draconimale.iqm");
}
+ if(fexists("models/player/cow.md3"))
+ {
+ cow_allowed = true;
+ precache_playermodel("models/player/cow.md3");
+ }
+
if (g_footsteps)
{
PrecacheGlobalSound((globalsound_step = "misc/footstep0 6"));