bool want_allguns;
bool want_mutatorblocked;
MUTATOR_HOOKABLE(WantWeapon, EV_WantWeapon);
+
+#define EV_SetPlayerFullStatus(i, o) \
+ /**/ i(entity, set_player) \
+ /**/ i(string, ret_string) \
+ /**/ o(string, ret_string) \
+ /**/
+entity set_player;
+MUTATOR_HOOKABLE(SetPlayerFullStatus, EV_SetPlayerFullStatus);
+
+#define EV_SetPlayerStatus(i, o) \
+ /**/ i(entity, set_player) \
+ /**/ i(string, ret_string) \
+ /**/ o(string, ret_string) \
+ /**/
+MUTATOR_HOOKABLE(SetPlayerStatus, EV_SetPlayerStatus);
#endif
return false;
}
+MUTATOR_HOOKFUNCTION(ca, SetPlayerFullStatus)
+{
+ if(set_player.caplayer == 1)
+ return true;
+ return false;
+}
+
+MUTATOR_HOOKFUNCTION(ca, SetPlayerStatus)
+{
+ if(set_player.caplayer == 1)
+ return true;
+ return false;
+}
+
void ca_Initialize()
{
allowed_to_spawn = true;
return false;
}
+MUTATOR_HOOKFUNCTION(lms, SetPlayerFullStatus)
+{
+ return true;
+}
+
+MUTATOR_HOOKFUNCTION(lms, SetPlayerStatus)
+{
+ return true;
+}
+
// scoreboard stuff
void lms_ScoreRules()
{
s = strcat(s, ":human");
else
s = strcat(s, ":bot");
- if(!IS_PLAYER(p) && p.caplayer != 1 && !g_lms)
+ if(!IS_PLAYER(p) && !MUTATOR_CALLHOOK(SetPlayerFullStatus, p, s))
s = strcat(s, ":spectator");
+ s = strcat(s, ret_string);
}
else
{
- if(IS_PLAYER(p) || p.caplayer == 1 || g_lms)
+ if(IS_PLAYER(p) || MUTATOR_CALLHOOK(SetPlayerStatus, p, s))
s = GetPlayerScoreString(p, 2);
else
s = "-666";
+ s = strcat(s, ret_string);
}
if(p.clientstatus)