#include "../dpdefs/dpextensions.qh"
#include "constants.qh"
#include "teams.qh"
- #include "counting.qh"
#include "../server/autocvars.qh"
#include "../server/constants.qh"
#include "../server/defs.qh"
#ifdef CSQC
if(notif.nent_icon != "")
{
+ if ( notif.nent_iconargs != "" )
+ {
+ notif.nent_icon = Local_Notification_sprintf(
+ notif.nent_icon,notif.nent_iconargs,
+ s1, s2, s3, s4, f1, f2, f3, f4);
+ // remove the newline added by Local_Notification_sprintf
+ notif.nent_icon = strzone(substring(notif.nent_icon,0,strlen(notif.nent_icon)-1));
+ }
Local_Notification_HUD_Notify_Push(
notif.nent_icon,
notif.nent_hudargs,
if((notif.nent_stringcount + notif.nent_floatcount) > count)
{
+ string s =
+ #ifdef NOTIFICATIONS_DEBUG
+ Get_Notif_BroadcastName(broadcast);
+ #else
+ ftos(broadcast);
+ #endif
backtrace(sprintf(
strcat(
"Not enough arguments for Send_Notification(%s, ...)! ",
"Check the definition and function call for accuracy...?\n"
),
sprintf(
- #ifdef NOTIFICATIONS_DEBUG
"%s, '%s', %s, %s",
- Get_Notif_BroadcastName(broadcast),
- #else
- "%d, '%s', %s, %s",
- broadcast,
- #endif
+ s,
client.classname,
Get_Notif_TypeName(net_type),
notif.nent_name
}
else if((notif.nent_stringcount + notif.nent_floatcount) < count)
{
+ string s =
+ #ifdef NOTIFICATIONS_DEBUG
+ Get_Notif_BroadcastName(broadcast);
+ #else
+ ftos(broadcast);
+ #endif
backtrace(sprintf(
strcat(
"Too many arguments for Send_Notification(%s, ...)! ",
"Check the definition and function call for accuracy...?\n"
),
sprintf(
- #ifdef NOTIFICATIONS_DEBUG
"%s, '%s', %s, %s",
- Get_Notif_BroadcastName(broadcast),
- #else
- "%d, '%s', %s, %s",
- broadcast,
- #endif
+ s,
client.classname,
Get_Notif_TypeName(net_type),
notif.nent_name