|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include <common/command/_mod.qh>#include <common/constants.qh>#include <common/mutators/mutator/buffs/buffs.qh>#include <common/sounds/sound.qh>#include <common/teams.qh>#include <common/util.qh>#include <common/weapons/all.qh>#include "all.inc"Go to the source code of this file.
Macros | |
| #define | ACVNN(name, defaultvalue) |
| #define | ACVNNA(name, defaultvalue) |
| #define | APP_NUM(num, prefix) |
| #define | APP_TEAM_NUM(num, prefix) |
| #define | DEFAULT_FILENAME "notifications_dump.cfg" |
| #define | EIGHT_VARS_TO_VARARGS_VARLIST(stringcount, floatcount) |
| #define | Get_Notif_Name(notif) |
| main types/groups of notifications | |
| #define | HASH_REPLACE(full_msg, num, attacker_name) |
| #define | KILL_SPREE_LIST |
| #define | MSG_ANNCE_NOTIF(name, defaultvalue, sound, channel, volume, position, queuetime) |
| #define | MSG_ANNCE_NOTIF_(teamnum, name, cvarname, defaultvalue, sound, channel, volume, position, queuetime) |
| #define | MSG_ANNCE_NOTIF_TEAM(teamnum, name, cvarname, defaultvalue, sound, channel, volume, position, queuetime) |
| #define | MSG_CENTER_NOTIF(name, defaultvalue, strnum, flnum, args, cpid, durcnt, normal, gentle) |
| #define | MSG_CENTER_NOTIF_(teamnum, name, cvarname, defaultvalue, strnum, flnum, args, cpid, durcnt, normal, gentle) |
| #define | MSG_CENTER_NOTIF_TEAM(teamnum, name, cvarname, defaultvalue, strnum, flnum, args, cpid, durcnt, normal, gentle) |
| #define | MSG_CHOICE_NOTIF(name, defaultvalue, challow, chtype, optiona, optionb) |
| #define | MSG_CHOICE_NOTIF_(teamnum, name, cvarname, defaultvalue, challow, chtype, optiona, optionb) |
| #define | MSG_CHOICE_NOTIF_TEAM(teamnum, name, cvarname, defaultvalue, challow, chtype, optiona, optionb) |
| #define | MSG_INFO_NOTIF(name, defaultvalue, strnum, flnum, args, hudargs, icon, normal, gentle) |
| #define | MSG_INFO_NOTIF_(teamnum, name, cvarname, defaultvalue, strnum, flnum, args, hudargs, icon, normal, gentle) |
| #define | MSG_INFO_NOTIF_TEAM(teamnum, name, cvarname, defaultvalue, strnum, flnum, args, hudargs, icon, normal, gentle) |
| #define | MSG_MULTI_NOTIF(name, defaultvalue, anncename, infoname, centername) |
| #define | MULTIICON_INFO(name, defaultvalue, strnum, flnum, args, hudargs, iconargs, icon, normal, gentle) |
| #define | MULTIICON_INFO_(name, defaultvalue, strnum, flnum, args, hudargs, iconargs, icon, normal, gentle) |
| #define | NOTIF_ADD_AUTOCVAR(name, defaultvalue) |
| #define | NOTIF_ADD_AUTOCVAR_ALLOWED(name, defaultvalue) |
| #define | NOTIF_ARGUMENT_LIST |
| #define | NOTIF_HIT_MAX(count, funcname) |
| #define | NOTIF_HIT_UNKNOWN(token, funcname) |
| #define | SPREE_ITEM(counta, countb, center, normal, gentle) |
| #define | SPREE_ITEM(counta, countb, center, normal, gentle) |
Typedefs | |
| using | Notification = entity |
| always last | |
Functions | |
| void | Create_Notification_Entity (entity notif, int var_default, int var_cvar, MSG typeId, int teamnum) |
| void | Create_Notification_Entity_Annce (entity notif, int var_cvar, int channel, string snd, float vol, float position, float queuetime) |
| void | Create_Notification_Entity_Choice (entity notif, int var_cvar, int challow_def, int challow_var, MSG chtype, Notification optiona, Notification optionb) |
| void | Create_Notification_Entity_InfoCenter (entity notif, int var_cvar, int strnum, int flnum, string args, string hudargs, string icon, CPID cpid, string durcnt, string normal, string gentle) |
| void | Create_Notification_Entity_Multi (entity notif, int var_cvar, Notification anncename, Notification infoname, Notification centername) |
| void | Destroy_All_Notifications () |
| void | Dump_Notifications (int fh, bool alsoprint) |
| Used to output notifications.cfg file. | |
| GENERIC_COMMAND (dumpnotifs, "Dump all notifications into " DEFAULT_FILENAME, false) | |
| string | Get_Notif_BroadcastName (NOTIF broadcast) |
| send to one client and their spectators | |
| string | Get_Notif_CvarName (Notification notif) |
| Notification | Get_Notif_Ent (MSG net_type, int net_name) |
| string | Get_Notif_TypeName (MSG net_type) |
| string | hash_replace (string full_msg, int ent_msg_num, string ent_msg, string attacker_name) |
| replaces # with attacker_name in ent_msg (if not found attacker_name is appended) | |
| void | Kill_Notification (NOTIF broadcast, entity client, MSG net_type, CPID net_name) |
| void | Local_Notification (MSG net_type, Notification net_name,...count) |
| void | Local_Notification_Core (MSG net_type, Notification net_name, string s1, string s2, string s3, string s4, float f1, float f2, float f3, float f4) |
| glue for networking, forwards to Local_Notification | |
| void | Local_Notification_Queue_Process () |
| string | notif_arg_frag_ping (bool newline, float fping) |
| string | notif_arg_frag_stats (float fhealth, float farmor, float fping) |
| string | notif_arg_item_wepammo (float f1, float f2) |
| string | notif_arg_spree_cen (float spree) |
| string | notif_arg_spree_inf (float type, string input, string player, float spree) |
| void | Notification_GetCvars (entity this, entity store) |
| Used by MSG_CHOICE to build list of choices. | |
| REGISTRY_BEGIN (Notifications) | |
| REGISTRY_END (Notifications) | |
| void | ReplicateVars (bool would_destroy) |
| void | Send_Notification (NOTIF broadcast, entity client, MSG net_type, Notification net_name,...count) |
| void | Send_Notification_Core (NOTIF broadcast, entity client, MSG net_type, Notification net_name, string s1, string s2, string s3, string s4, float f1, float f2, float f3, float f4) |
| STATIC_INIT (g_notifications) | |
| STATIC_INIT (Notifications) | |
| STATIC_INIT_LATE (Notif_Choices) | |
| #define ACVNN | ( | name, | |
| defaultvalue ) |
| #define ACVNNA | ( | name, | |
| defaultvalue ) |
| #define APP_NUM | ( | num, | |
| prefix ) |
Definition at line 89 of file all.qh.
Referenced by ctf_CheckFlagReturn(), ctf_Handle_Capture(), ctf_Handle_Drop(), ctf_Handle_Pickup(), ctf_Handle_Retrieve(), and MUTATOR_HOOKFUNCTION().
| #define APP_TEAM_NUM | ( | num, | |
| prefix ) |
Definition at line 88 of file all.qh.
Referenced by CA_CheckWinner(), ClientKill_TeamChange(), ctf_CaptureRecord(), ctf_Handle_Pickup(), ctf_Handle_Return(), Domination_CheckWinner(), freezetag_CheckWinner(), kh_Key_Collect(), kh_Key_DropAll(), kh_Key_DropOne(), kh_Key_Spawn(), kh_Key_Think(), kh_LoserTeam(), kh_WinnerTeam(), nexball_setstatus(), Obituary(), ons_ControlPoint_Icon_BuildThink(), ons_ControlPoint_Icon_Damage(), ons_GeneratorDamage(), ons_GeneratorThink(), Onslaught_CheckWinner(), ResetBall(), and SetPlayerTeam().
| #define DEFAULT_FILENAME "notifications_dump.cfg" |
Definition at line 164 of file all.qh.
Referenced by GENERIC_COMMAND(), and GENERIC_COMMAND().
| #define EIGHT_VARS_TO_VARARGS_VARLIST | ( | stringcount, | |
| floatcount ) |
Definition at line 91 of file all.qh.
Referenced by Local_Notification_Core(), and Send_Notification_Core().
| #define Get_Notif_Name | ( | notif | ) |
main types/groups of notifications
"Global" AND "personal" announcer messages "Global" information messages "Personal" centerprint messages Subcall MSG_INFO and/or MSG_CENTER notifications Choose which subcall wrapper to activate Kill centerprint message
Definition at line 32 of file all.qh.
Referenced by Create_Notification_Entity(), Create_Notification_Entity_Annce(), Create_Notification_Entity_Choice(), Create_Notification_Entity_InfoCenter(), Create_Notification_Entity_Multi(), Get_Notif_CvarName(), Get_Notif_Ent(), Local_Notification(), NET_HANDLE(), Net_Notification_Remove(), and Send_Notification_Core().
| #define HASH_REPLACE | ( | full_msg, | |
| num, | |||
| attacker_name ) |
| #define KILL_SPREE_LIST |
Definition at line 487 of file all.qh.
Referenced by MUTATOR_HOOKFUNCTION(), notif_arg_spree_cen(), notif_arg_spree_inf(), and Obituary().
Definition at line 757 of file all.qh.
| #define MSG_ANNCE_NOTIF_ | ( | teamnum, | |
| name, | |||
| cvarname, | |||
| defaultvalue, | |||
| sound, | |||
| channel, | |||
| volume, | |||
| position, | |||
| queuetime ) |
Definition at line 761 of file all.qh.
| #define MSG_ANNCE_NOTIF_TEAM | ( | teamnum, | |
| name, | |||
| cvarname, | |||
| defaultvalue, | |||
| sound, | |||
| channel, | |||
| volume, | |||
| position, | |||
| queuetime ) |
Definition at line 755 of file all.qh.
| #define MSG_CENTER_NOTIF | ( | name, | |
| defaultvalue, | |||
| strnum, | |||
| flnum, | |||
| args, | |||
| cpid, | |||
| durcnt, | |||
| normal, | |||
| gentle ) |
Definition at line 816 of file all.qh.
Referenced by BOLD(), BOLD(), BOLD(), BOLD(), BOLD(), BOLD(), BOLD(), BOLD(), BOLD(), BOLD(), BOLD(), BOLD(), BOLD(), BOLD(), BOLD(), BOLD(), BOLD(), BOLD(), BOLD(), BOLD(), BOLD(), BOLD(), BOLD(), BOLD(), BOLD(), BOLD(), BOLD(), BOLD(), BOLD(), BOLD(), MSG_CENTER_NOTIF(), MSG_CENTER_NOTIF(), MSG_CENTER_NOTIF(), MSG_CENTER_NOTIF(), MSG_CENTER_NOTIF(), MSG_CENTER_NOTIF(), MSG_CENTER_NOTIF(), MSG_CENTER_NOTIF(), MSG_CENTER_NOTIF(), MSG_CENTER_NOTIF(), MSG_CENTER_NOTIF(), MSG_CENTER_NOTIF(), MSG_CENTER_NOTIF(), MSG_CENTER_NOTIF(), MSG_CENTER_NOTIF(), MSG_CENTER_NOTIF(), MSG_CENTER_NOTIF(), MSG_CENTER_NOTIF(), MSG_CENTER_NOTIF(), MSG_CENTER_NOTIF(), MSG_CENTER_NOTIF(), MSG_CENTER_NOTIF(), MSG_CENTER_NOTIF(), MSG_CENTER_NOTIF(), MSG_CENTER_NOTIF(), MSG_CENTER_NOTIF(), strcat(), VERBOSE_MURDER(), VERBOSE_MURDER(), VERBOSE_MURDER(), VERBOSE_MURDER(), VERBOSE_MURDER(), and VERBOSE_MURDER().
| #define MSG_CENTER_NOTIF_ | ( | teamnum, | |
| name, | |||
| cvarname, | |||
| defaultvalue, | |||
| strnum, | |||
| flnum, | |||
| args, | |||
| cpid, | |||
| durcnt, | |||
| normal, | |||
| gentle ) |
Definition at line 820 of file all.qh.
| #define MSG_CENTER_NOTIF_TEAM | ( | teamnum, | |
| name, | |||
| cvarname, | |||
| defaultvalue, | |||
| strnum, | |||
| flnum, | |||
| args, | |||
| cpid, | |||
| durcnt, | |||
| normal, | |||
| gentle ) |
Definition at line 814 of file all.qh.
| #define MSG_CHOICE_NOTIF | ( | name, | |
| defaultvalue, | |||
| challow, | |||
| chtype, | |||
| optiona, | |||
| optionb ) |
Definition at line 847 of file all.qh.
| #define MSG_CHOICE_NOTIF_ | ( | teamnum, | |
| name, | |||
| cvarname, | |||
| defaultvalue, | |||
| challow, | |||
| chtype, | |||
| optiona, | |||
| optionb ) |
Definition at line 852 of file all.qh.
| #define MSG_CHOICE_NOTIF_TEAM | ( | teamnum, | |
| name, | |||
| cvarname, | |||
| defaultvalue, | |||
| challow, | |||
| chtype, | |||
| optiona, | |||
| optionb ) |
Definition at line 845 of file all.qh.
| #define MSG_INFO_NOTIF | ( | name, | |
| defaultvalue, | |||
| strnum, | |||
| flnum, | |||
| args, | |||
| hudargs, | |||
| icon, | |||
| normal, | |||
| gentle ) |
Definition at line 776 of file all.qh.
Referenced by MSG_INFO_NOTIF(), MSG_INFO_NOTIF(), and MULTIICON_INFO().
| #define MSG_INFO_NOTIF_ | ( | teamnum, | |
| name, | |||
| cvarname, | |||
| defaultvalue, | |||
| strnum, | |||
| flnum, | |||
| args, | |||
| hudargs, | |||
| icon, | |||
| normal, | |||
| gentle ) |
Definition at line 780 of file all.qh.
| #define MSG_INFO_NOTIF_TEAM | ( | teamnum, | |
| name, | |||
| cvarname, | |||
| defaultvalue, | |||
| strnum, | |||
| flnum, | |||
| args, | |||
| hudargs, | |||
| icon, | |||
| normal, | |||
| gentle ) |
Definition at line 773 of file all.qh.
| #define MSG_MULTI_NOTIF | ( | name, | |
| defaultvalue, | |||
| anncename, | |||
| infoname, | |||
| centername ) |
Definition at line 834 of file all.qh.
| #define MULTIICON_INFO | ( | name, | |
| defaultvalue, | |||
| strnum, | |||
| flnum, | |||
| args, | |||
| hudargs, | |||
| iconargs, | |||
| icon, | |||
| normal, | |||
| gentle ) |
Definition at line 795 of file all.qh.
Referenced by MULTIICON_INFO().
| #define MULTIICON_INFO_ | ( | name, | |
| defaultvalue, | |||
| strnum, | |||
| flnum, | |||
| args, | |||
| hudargs, | |||
| iconargs, | |||
| icon, | |||
| normal, | |||
| gentle ) |
Definition at line 798 of file all.qh.
| #define NOTIF_ADD_AUTOCVAR | ( | name, | |
| defaultvalue ) |
| #define NOTIF_ADD_AUTOCVAR_ALLOWED | ( | name, | |
| defaultvalue ) |
| #define NOTIF_ARGUMENT_LIST |
Definition at line 424 of file all.qh.
Referenced by Local_Notification_centerprint_Add(), Local_Notification_HUD_Notify_Push(), Local_Notification_sprintf(), and Process_Notif_Args().
| #define NOTIF_HIT_MAX | ( | count, | |
| funcname ) |
Definition at line 473 of file all.qh.
Referenced by Local_Notification_centerprint_Add(), Local_Notification_HUD_Notify_Push(), and Local_Notification_sprintf().
| #define NOTIF_HIT_UNKNOWN | ( | token, | |
| funcname ) |
Definition at line 481 of file all.qh.
Referenced by Local_Notification_centerprint_Add(), Local_Notification_HUD_Notify_Push(), and Local_Notification_sprintf().
| #define SPREE_ITEM | ( | counta, | |
| countb, | |||
| center, | |||
| normal, | |||
| gentle ) |
| #define SPREE_ITEM | ( | counta, | |
| countb, | |||
| center, | |||
| normal, | |||
| gentle ) |
| using Notification = entity |
| void Create_Notification_Entity | ( | entity | notif, |
| int | var_default, | ||
| int | var_cvar, | ||
| MSG | typeId, | ||
| int | teamnum ) |
Definition at line 342 of file all.qc.
References entity(), Get_Notif_Name, LOG_INFOF, notif_error, and notif_global_error.
| void Create_Notification_Entity_Annce | ( | entity | notif, |
| int | var_cvar, | ||
| int | channel, | ||
| string | snd, | ||
| float | vol, | ||
| float | position, | ||
| float | queuetime ) |
Definition at line 390 of file all.qc.
References AnnouncerFilename, entity(), GENTLE, Get_Notif_Name, Get_Notif_TypeName(), LOG_INFOF, notif_error, precache_sound(), and strzone().
| void Create_Notification_Entity_Choice | ( | entity | notif, |
| int | var_cvar, | ||
| int | challow_def, | ||
| int | challow_var, | ||
| MSG | chtype, | ||
| Notification | optiona, | ||
| Notification | optionb ) |
Definition at line 644 of file all.qc.
References entity(), Get_Notif_Name, Get_Notif_TypeName(), LOG_INFOF, max(), and notif_error.
| void Create_Notification_Entity_InfoCenter | ( | entity | notif, |
| int | var_cvar, | ||
| int | strnum, | ||
| int | flnum, | ||
| string | args, | ||
| string | hudargs, | ||
| string | icon, | ||
| CPID | cpid, | ||
| string | durcnt, | ||
| string | normal, | ||
| string | gentle ) |
Definition at line 436 of file all.qc.
References autocvar_sv_dedicated, CPID_Null, entity(), GENTLE, Get_Notif_Name, Get_Notif_TypeName(), LOG_INFOF, LOG_WARNF, notif_error, Process_Notif_Args(), SET_NOTIF_STRING, and strzone().
| void Create_Notification_Entity_Multi | ( | entity | notif, |
| int | var_cvar, | ||
| Notification | anncename, | ||
| Notification | infoname, | ||
| Notification | centername ) |
Definition at line 594 of file all.qc.
References entity(), Get_Notif_Name, Get_Notif_TypeName(), LOG_INFOF, max(), and notif_error.
| void Destroy_All_Notifications | ( | ) |
Definition at line 110 of file all.qc.
References centerprint_KillAll(), CPID_Null, Destroy_Notification_Entity(), FOREACH, Kill_Notification(), and NULL.
Referenced by GenericCommand_restartnotifs().
Used to output notifications.cfg file.
Definition at line 722 of file all.qc.
References FOREACH, LOG_INFOF, NOTIF_WRITE, NOTIF_WRITE_ENTITY, NOTIF_WRITE_ENTITY_CHOICE, NOTIF_WRITE_HARDCODED, and NUM_TEAM_1.
Referenced by GENERIC_COMMAND().
| GENERIC_COMMAND | ( | dumpnotifs | , |
| "Dump all notifications into " | DEFAULT_FILENAME, | ||
| false | ) |
Definition at line 166 of file all.qh.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, DEFAULT_FILENAME, Dump_Notifications(), fclose(), FILE_WRITE, fopen(), GetProgramCommandPrefix, LOG_HELP, LOG_HELPF, LOG_INFO, and LOG_INFOF.
| string Get_Notif_BroadcastName | ( | NOTIF | broadcast | ) |
send to one client and their spectators
send ONLY to one client send only to X team and their spectators send only to X team and their spectators, except for Y person and their spectators send to everyone send to everyone except X person and their spectators
Definition at line 258 of file all.qh.
References Get_Notif_BroadcastName(), LOG_WARNF, and string().
Referenced by Get_Notif_BroadcastName(), Kill_Notification(), and Send_Notification_Core().
| string Get_Notif_CvarName | ( | Notification | notif | ) |
Definition at line 733 of file all.qh.
References Get_Notif_Name, Static_Team_ColorName(), strlen, and substring().
Referenced by Local_Notification(), and Notification_GetCvars().
| Notification Get_Notif_Ent | ( | MSG | net_type, |
| int | net_name ) |
Definition at line 740 of file all.qh.
References Get_Notif_Name, Get_Notif_TypeName(), LOG_WARNF, NULL, and REGISTRY_GET.
Referenced by NET_HANDLE().
| string Get_Notif_TypeName | ( | MSG | net_type | ) |
Definition at line 34 of file all.qh.
References LOG_WARNF, and ORDINAL.
Referenced by Create_Notification_Entity_Annce(), Create_Notification_Entity_Choice(), Create_Notification_Entity_InfoCenter(), Create_Notification_Entity_Multi(), Get_Notif_Ent(), Kill_Notification(), Local_Notification(), NET_HANDLE(), Net_Notification_Remove(), and Send_Notification_Core().
replaces # with attacker_name in ent_msg (if not found attacker_name is appended)
Definition at line 394 of file all.qh.
References CCR(), find_last_color_code(), strcat(), strstrofs, and substring().
| net_name | message group, MSG_Null for all cpid group, CPID_Null for all |
Definition at line 1464 of file all.qc.
References autocvar_notification_lifetime_runtime, CPID_Null, entity(), g_notifications, Get_Notif_BroadcastName(), Get_Notif_TypeName(), IL_EACH, LOG_WARNF, Net_LinkEntity(), Net_Write_Notification(), new_pure, Notification_CheckArgs(), and ORDINAL.
Referenced by ClientCommand_selectteam(), ClientCommand_spectate(), CommonCommand_timein(), Destroy_All_Notifications(), instagib_stop_countdown(), kh_EnableTrackingDevice(), kh_StartRound(), MUTATOR_HOOKFUNCTION(), NextLevel(), Remove_Countdown(), SetPlayerTeam(), timeout_handler_think(), toss_nade(), and vehicles_exit().
| void Local_Notification | ( | MSG | net_type, |
| Notification | net_name, | ||
| ... ) |
Definition at line 1176 of file all.qc.
References backtrace, count, cvar(), entity(), f1, f2, float(), Get_Notif_CvarName(), Get_Notif_Name, Get_Notif_TypeName(), Local_Notification(), Local_Notification_centerprint_Add(), Local_Notification_Core(), Local_Notification_HUD_Notify_Push(), Local_Notification_Queue_Add(), Local_Notification_sprintf(), LOG_WARNF, MakeConsoleSafe(), print(), s1, s2, strzone(), substring(), and warmup_stage.
Referenced by Announcer_Countdown(), Announcer_Gamestart(), Local_Notification(), Local_Notification_Core(), and NET_HANDLE().
| void Local_Notification_Core | ( | MSG | net_type, |
| Notification | net_name, | ||
| string | s1, | ||
| string | s2, | ||
| string | s3, | ||
| string | s4, | ||
| float | f1, | ||
| float | f2, | ||
| float | f3, | ||
| float | f4 ) |
glue for networking, forwards to Local_Notification
Definition at line 1341 of file all.qc.
References EIGHT_VARS_TO_VARARGS_VARLIST, f1, f2, Local_Notification(), s1, and s2.
Referenced by Local_Notification(), NET_HANDLE(), and Send_Notification().
| void Local_Notification_Queue_Process | ( | ) |
Definition at line 1158 of file all.qc.
References Local_Notification_Queue_Run(), notif_queue_entity, notif_queue_length, notif_queue_time, notif_queue_type, and time.
Referenced by HUD_Draw().
Definition at line 506 of file all.qh.
References CCR(), and notif_arg_frag_ping().
Definition at line 633 of file all.qh.
References Weapon::ammo_type, f1, f2, Resource::m_name, REGISTRY_GET, strtolower(), and Weapons.
Definition at line 515 of file all.qh.
References KILL_SPREE_LIST, normal_or_gentle, and strcat().
Definition at line 551 of file all.qh.
References autocvar_notification_show_sprees_info, autocvar_notification_show_sprees_info_newline, autocvar_notification_show_sprees_info_specialonly, CCR(), KILL_SPREE_LIST, normal_or_gentle, strcat(), and substring().
Used by MSG_CHOICE to build list of choices.
Definition at line 707 of file all.qc.
References entity(), FOREACH, get_cvars_f, get_cvars_s, Get_Notif_CvarName(), GetCvars_handleFloat(), msg_choice_choices, and NUM_TEAM_1.
Referenced by GetCvars().
| REGISTRY_BEGIN | ( | Notifications | ) |
Definition at line 867 of file all.qh.
References notif_global_error.
| REGISTRY_END | ( | Notifications | ) |
Definition at line 872 of file all.qh.
References autocvar_notification_errors_are_fatal, LOG_FATAL, LOG_SEVERE, and notif_global_error.
Definition at line 885 of file all.qh.
References FOREACH, and NUM_TEAM_1.
Referenced by CSQC_UpdateView(), GetCvars(), and Shutdown().
| void Send_Notification | ( | NOTIF | broadcast, |
| entity | client, | ||
| MSG | net_type, | ||
| Notification | net_name, | ||
| ... ) |
Definition at line 1500 of file all.qc.
References autocvar_notification_lifetime_mapload, autocvar_notification_lifetime_runtime, autocvar_sv_dedicated, count, entity(), f1, f2, float(), FOREACH_CLIENT, g_notifications, IL_PUSH(), IS_REAL_CLIENT, Local_Notification_Core(), LOG_WARN, LOG_WARNF, MakeConsoleSafe(), Net_LinkEntity(), Net_Notification_Remove(), Net_Write_Notification(), new_pure, NOTIF_INFO, Notification_CheckArgs(), Notification_ShouldSend(), RECURSE_FROM_CHOICE, s1, s2, setthink, string(), strzone(), and time.
Referenced by bot_spawn(), buff_Touch(), CA_CheckWinner(), ca_LastPlayerForTeam_Notify(), CheckPlayerJump(), CheckRules_World(), ClientCommand_minigame(), ClientCommand_selectteam(), ClientCommand_spectate(), ClientConnect(), ClientDisconnect(), ClientKill_Now_TeamChange(), ClientKill_TeamChange(), CommonCommand_timeout(), counter_use(), ctf_CaptureRecord(), ctf_CaptureShield_Touch(), ctf_CaptureShield_Update(), ctf_CheckFlagReturn(), ctf_CheckStalemate(), ctf_FlagcarrierWaypoints(), ctf_Handle_Capture(), ctf_Handle_Drop(), ctf_Handle_Pickup(), ctf_Handle_Retrieve(), ctf_Handle_Return(), Domination_CheckWinner(), dompoint_captured(), door_check_keys(), fireBullet_falloff(), FireRailgunBullet(), frag_centermessage_override(), freezetag_CheckWinner(), freezetag_LastPlayerForTeam_Notify(), GameCommand_cointoss(), GameCommand_lockteams(), GameCommand_unlockteams(), InitiateOvertime(), instagib_ammocheck(), instagib_countdown(), Invasion_CheckWinner(), invite_minigame(), Item_GiveTo(), joinAllowed(), ka_DropEvent(), ka_TouchEvent(), kh_FinishRound(), kh_Key_Collect(), kh_Key_DropAll(), kh_Key_DropOne(), kh_Key_Spawn(), kh_Key_Think(), kh_LoserTeam(), kh_StartRound(), kh_WaitForPlayers(), kh_WinnerTeam(), KillIndicator_Think(), lms_AddPlayer(), lms_RemovePlayer(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), nades_GiveBonus(), nexball_setstatus(), NIX_GiveCurrentWeapon(), nJoinAllowed(), Obituary(), ObserverOrSpectatorThink(), ons_CaptureShield_Touch(), ons_ControlPoint_Icon_BuildThink(), ons_ControlPoint_Icon_Damage(), ons_ControlPoint_Touch(), ons_GeneratorDamage(), ons_GeneratorThink(), Onslaught_CheckWinner(), onslaught_generator_touch(), player_powerups(), PlayerFrame(), Portal_TeleportPlayer(), PutObserverInServer(), PutPlayerInServer(), race_AbandonRaceCheck(), race_SendTime(), race_setTime(), ReadyCount(), ReadyRestart_force(), Remove_Countdown(), ResetBall(), Say(), Send_Notification_Core(), SetPlayerTeam(), ShowRespawnCountdown(), superspec_hello(), Surv_CheckWinner(), surv_LastPlayerForTeam_Notify(), Surv_RoundStart(), SV_ParseClientCommand(), TeamBalance_RemoveExcessPlayers(), timeout_handler_think(), tka_DropEvent(), tka_TouchEvent(), trigger_keylock_touch(), vehicles_enter(), VoteAccept(), VoteCommand_abstain(), VoteCommand_call(), VoteCommand_no(), VoteCommand_yes(), VoteReject(), VoteTimeout(), W_Devastator_Explode(), W_Electro_Explode(), W_MineLayer_Attack(), W_MineLayer_Explode(), W_Mortar_Grenade_Explode(), W_Mortar_Grenade_Explode2(), W_OverkillNex_Attack(), W_Porto_Fail(), W_Porto_Touch(), W_RocketMinsta_Laser_Explode(), W_ThrowWeapon(), W_Vaporizer_Attack(), W_Vortex_Attack(), weapon_prepareattack_checkammo(), WinningCondition_Assault(), and WinningCondition_Scores().
| void Send_Notification_Core | ( | NOTIF | broadcast, |
| entity | client, | ||
| MSG | net_type, | ||
| Notification | net_name, | ||
| string | s1, | ||
| string | s2, | ||
| string | s3, | ||
| string | s4, | ||
| float | f1, | ||
| float | f2, | ||
| float | f3, | ||
| float | f4 ) |
Definition at line 1646 of file all.qc.
References EIGHT_VARS_TO_VARARGS_VARLIST, entity(), f1, f2, Get_Notif_BroadcastName(), Get_Notif_Name, Get_Notif_TypeName(), MakeConsoleSafe(), s1, s2, and Send_Notification().
Referenced by Obituary_SpecialDeath(), and Obituary_WeaponDeath().
| STATIC_INIT | ( | g_notifications | ) |
Definition at line 236 of file all.qh.
References g_notifications, and IL_NEW.
| STATIC_INIT | ( | Notifications | ) |
Definition at line 710 of file all.qh.
References FOREACH, and STATIC_INIT.
| STATIC_INIT_LATE | ( | Notif_Choices | ) |
Definition at line 726 of file all.qh.
References LOG_FATALF, nent_choice_count, NOTIF_CHOICE_MAX, and STATIC_INIT_LATE.
| const int ARG_CS_SV_DC = 2 |
| const int ARG_CS_SV_HA = 1 |
| string arg_slot[NOTIF_MAX_ARGS] |
Definition at line 412 of file all.qh.
Referenced by Local_Notification_centerprint_Add(), Local_Notification_HUD_Notify_Push(), and Local_Notification_sprintf().
Definition at line 300 of file all.qh.
Referenced by REGISTRY_END().
| float autocvar_notification_lifetime_mapload = 10 |
Definition at line 303 of file all.qh.
Referenced by Send_Notification().
| float autocvar_notification_lifetime_runtime = 0.5 |
Definition at line 302 of file all.qh.
Referenced by Kill_Notification(), and Send_Notification().
Definition at line 308 of file all.qh.
Referenced by Obituary().
| int autocvar_notification_show_sprees_info = 3 |
Definition at line 297 of file all.qh.
Referenced by notif_arg_spree_inf().
Definition at line 298 of file all.qh.
Referenced by notif_arg_spree_inf().
Definition at line 299 of file all.qh.
Referenced by notif_arg_spree_inf().
| const string BOLD_OPERATOR = "^BOLD" |
Definition at line 13 of file all.qh.
Referenced by HUD_CenterPrint().
| IntrusiveList g_notifications |
Definition at line 235 of file all.qh.
Referenced by Kill_Notification(), Send_Notification(), and STATIC_INIT().
| int msg_choice_choices[NOTIF_CHOICE_MAX] |
set on each player containing MSG_CHOICE choices
Definition at line 721 of file all.qh.
Referenced by Notification_GetCvars().
| NOTIF nent_broadcast |
Definition at line 683 of file all.qh.
Referenced by Net_Write_Notification().
| int nent_choice_count = 0 |
Definition at line 719 of file all.qh.
Referenced by STATIC_INIT_LATE().
| entity nent_client |
Definition at line 685 of file all.qh.
Referenced by Net_Write_Notification().
| int nent_floatcount |
Definition at line 652 of file all.qh.
Referenced by Net_Write_Notification().
| float nent_floats[4] |
Definition at line 689 of file all.qh.
Referenced by Net_Write_Notification().
| int nent_net_name |
Definition at line 687 of file all.qh.
Referenced by Net_Notification_Remove(), and Net_Write_Notification().
| MSG nent_net_type |
Definition at line 686 of file all.qh.
Referenced by Net_Notification_Remove(), and Net_Write_Notification().
| int nent_stringcount |
Definition at line 651 of file all.qh.
Referenced by Net_Notification_Remove(), and Net_Write_Notification().
| string nent_strings[4] |
Definition at line 688 of file all.qh.
Referenced by Net_Notification_Remove(), and Net_Write_Notification().
| const int NOTIF_CHOICE_MAX = 20 |
Definition at line 716 of file all.qh.
Referenced by STATIC_INIT_LATE().
| bool notif_error |
Definition at line 723 of file all.qh.
Referenced by Create_Notification_Entity(), Create_Notification_Entity_Annce(), Create_Notification_Entity_Choice(), Create_Notification_Entity_InfoCenter(), Create_Notification_Entity_Multi(), Process_Notif_Args(), and Process_Notif_Line().
| bool notif_global_error |
Definition at line 724 of file all.qh.
Referenced by Create_Notification_Entity(), REGISTRY_BEGIN(), and REGISTRY_END().
| const int NOTIF_MAX_ARGS = 7 |
Definition at line 378 of file all.qh.
Referenced by Local_Notification_sprintf(), and Process_Notif_Args().
| const int NOTIF_MAX_DURCNT = 2 |
Definition at line 380 of file all.qh.
Referenced by Local_Notification_centerprint_Add(), and Process_Notif_Args().
| const int NOTIF_MAX_HUDARGS = 2 |
Definition at line 379 of file all.qh.
Referenced by Local_Notification_HUD_Notify_Push(), and Process_Notif_Args().
| entity notif_queue_entity[NOTIF_QUEUE_MAX] |
Definition at line 384 of file all.qh.
Referenced by Local_Notification_Queue_Add(), and Local_Notification_Queue_Process().
| int notif_queue_length |
Definition at line 389 of file all.qh.
Referenced by Local_Notification_Queue_Add(), and Local_Notification_Queue_Process().
| const int NOTIF_QUEUE_MAX = 10 |
Definition at line 383 of file all.qh.
Referenced by Local_Notification_Queue_Add().
| float notif_queue_next_time |
Definition at line 388 of file all.qh.
Referenced by Local_Notification_Queue_Add().
| float notif_queue_time[NOTIF_QUEUE_MAX] |
Definition at line 386 of file all.qh.
Referenced by Local_Notification_Queue_Add(), and Local_Notification_Queue_Process().
| MSG notif_queue_type[NOTIF_QUEUE_MAX] |
Definition at line 385 of file all.qh.
Referenced by Local_Notification_Queue_Add(), and Local_Notification_Queue_Process().
| string prev_soundfile |
Definition at line 230 of file all.qh.
Referenced by Local_Notification_sound().
| float prev_soundtime |
Definition at line 231 of file all.qh.
Referenced by Local_Notification_sound().