cvar_set(e.netname, e.message);
}
-void() menu_show_error =
+void menu_show_error()
{
drawstring('0 200 0', _("ERROR - MENU IS VISIBLE BUT NO MENU WAS DEFINED!"), '8 8 0', '1 0 0', 1, 0);
}
// CSQC_Init : Called every time the CSQC code is initialized (essentially at map load)
// Useful for precaching things
-void() menu_sub_null =
+void menu_sub_null()
{
}
void Ent_RadarLink();
void Ent_Init();
void Ent_ScoresInfo();
-void(float bIsNewEntity) CSQC_Ent_Update =
+void CSQC_Ent_Update(float bIsNewEntity)
{
float t;
float savetime;
string ctf_temp_1;
float order_page;
-void() menu_close =
+void menu_close()
{
menu_visible = false;
menu_show = menu_show_error;
localcmd("\nin_bindmap 0 0;");
}
-void() order_menu_render =
+void order_menu_render()
{
vector ps, po;
float i, p, n;
}
}
-float(float bInputType, float nPrimary, float nSecondary) order_menu_action =
+float order_menu_action(float bInputType, float nPrimary, float nSecondary)
{
string arg;
float p, i, n, chose;
return TRUE;
}
-void() order_menu_show =
+void order_menu_show()
{
order_page = 0;
menu_show = order_menu_render;
}
-void() ctf_menu_render =
+void ctf_menu_render()
{
vector ps, po;
ps = '0 200 0';
}
}
-float(float bInputType, float nPrimary, float nSecondary) ctf_menu_action =
+float ctf_menu_action(float bInputType, float nPrimary, float nSecondary)
{
string arg;
if(bInputType != 0) // key down wanted
return TRUE;
}
-void() ctf_menu_show =
+void ctf_menu_show()
{
if(getstati(STAT_CTF_STATE) < 0)
return;
//menu_default_binds();
}
-void() ctf_view =
+void ctf_view()
{
float stat;
stat = getstati(STAT_CTF_STATE);
}
}
-void(vector coord3d, vector pangles, vector rgb) draw_teamradar_player =
+void draw_teamradar_player(vector coord3d, vector pangles, vector rgb)
{
vector coord, rgb2;
void SUB_Null() { }
-void() m_init =
+void m_init()
{
cvar_set("_menu_alpha", "0");
prvm_language = strzone(cvar_string("prvm_language"));
}
}
-void() m_init_delayed =
+void m_init_delayed()
{
float fh, glob, n, i;
string s;
m_display(); // delayed menu display
}
-void(float key, float ascii) m_keyup =
+void m_keyup (float key, float ascii)
{
if(!menuInitialized)
return;
if(key == K_SHIFT) menuShiftState -= (menuShiftState & S_SHIFT);
}
-void(float key, float ascii) m_keydown =
+void m_keydown(float key, float ascii)
{
if(!menuInitialized)
return;
draw_Picture(org, img, isz, '1 1 1', a);
}
-void(string img, float a, string algn, float force1) drawBackground =
+void drawBackground(string img, float a, string algn, float force1)
{
if(main.mainNexposee.ModalController_state == 0)
return;
}
}
-void() m_draw =
+void m_draw()
{
float t;
float realFrametime;
frametime = 0;
}
-void() m_display =
+void m_display()
{
Menu_Active = true;
setkeydest(KEY_MENU);
main.showNotify(main);
}
-void() m_hide =
+void m_hide()
{
Menu_Active = false;
setkeydest(KEY_GAME);
main.hideNotify(main);
}
-void() m_toggle =
+void m_toggle()
{
if(Menu_Active)
m_hide();
m_display();
}
-void() m_shutdown =
+void m_shutdown()
{
entity e;
}
}
-void(string itemname) m_goto =
+void m_goto(string itemname)
{
entity e;
if(!menuInitialized)
}
}
-void() m_goto_skin_selector =
+void m_goto_skin_selector()
{
if(!menuInitialized)
return;
m_goto("skinselector");
}
-void() m_goto_language_selector =
+void m_goto_language_selector()
{
if(!menuInitialized)
return;
m_goto("languageselector");
}
-void() m_goto_video_settings =
+void m_goto_video_settings()
{
if(!menuInitialized)
return;
}
// choose a role according to the situation
-void() havocbot_role_dm;
+void havocbot_role_dm();
//DOM:
//go to best items, or control points you don't own
}
}
/*
-entity(float cteam) ctf_team_has_commander =
+entity ctf_team_has_commander(float cteam)
{
entity pl;
if(cteam != COLOR_TEAM1 || cteam != COLOR_TEAM2)
return world;
}
-void(entity e, float st) ctf_setstate =
+void ctf_setstate(entity e, float st)
{
e.ctf_state = st;
++e.version;
}
-void(float cteam) ctf_new_commander =
+void ctf_new_commander(float cteam)
{
entity pl, plmax;
centerprint(plmax, "^3You're the commander now!\n");
}
-void() ctf_clientconnect =
+void ctf_clientconnect()
{
self.iscommander = FALSE;
}
}
-void() ctf_playerchanged =
+void ctf_playerchanged()
{
if(!self.team || self.classname != "player") {
ctf_setstate(self, -1);
ctf_new_commander(self.team);
}
-void() ctf_clientdisconnect =
+void ctf_clientdisconnect()
{
if(self.iscommander)
{
}
entity GetPlayer(string);
-float() ctf_clientcommand =
+float ctf_clientcommand()
{
entity e;
if(argv(0) == "order") {
// func_breakable
// - basically func_assault_destructible for general gameplay use
//
-void LaunchDebris (string debrisname, vector force) =
+void LaunchDebris (string debrisname, vector force)
{
local entity dbr;