Player Events

From Hopmod Wiki

Jump to: navigation, search
Name and Parameters Description
connect(cn) New client has connected.
disconnect(cn) Client has disconnected.
failedconnect(ip, reason) Client was unable to connect to the server for some reason.
kick(cn, bantime, admin, reason) Player has been kicked.
active(cn) Player is active in the game (sending position packets). Signalled once per game.
rename(cn, oldname, newname) Player has renamed.
reteam(cn, oldteam, newteam) Player has changed team.
chteamrequest(cn, curteam, newteam) Player wants to move to another team. Return -1 to reject the request.
text(cn, msg) Player sent a chat message.
sayteam(cn, msg) Player sent a chat message to his team.
spectator(cn, value) Player joined or left spectators.
mapvote(cn, map, mode)
mapcrcfail(cn) Player has modified map.
masterchange(cn, value) Player gained or lost master/admin privilege.
setmastermode(cn, oldmm, newmm) Player changed the server master mode.

Game-specific Events

Name and Parameters Description
shot(cn, gun, hits)
frag(actor, target) Actor(CN) fragged target(CN).
teamkill(actor, target) Actor(CN) team killed target(CN). Signalled instead of frag event.
suicide(cn)
takeflag(cn)
dropflag(cn)
scoreflag(cn)
returnflag(cn)