seta hud_panel_buffs_bg_alpha "" "if set to something else than \"\" = override default panel background alpha"
seta hud_panel_buffs_bg_border "" "if set to something else than \"\" = override default size of border around the background"
seta hud_panel_buffs_bg_padding "" "if set to something else than \"\" = override default padding of contents from border"
+seta hud_panel_buffs_progressbar "" "use progressbar behind buff names"
+seta hud_panel_buffs_progressbar_name "" "name of progressbar to use behind buff names"
+
+ seta hud_panel_minigameboard "" "enable/disable this panel"
+ seta hud_panel_minigameboard_pos "" "position of this panel"
+ seta hud_panel_minigameboard_size "" "size of this panel"
+ seta hud_panel_minigameboard_bg "" "if set to something else than \"\" = override default background"
+ seta hud_panel_minigameboard_bg_color "" "if set to something else than \"\" = override default panel background color"
+ seta hud_panel_minigameboard_bg_color_team "" "override panel color with team color in team based games"
+ seta hud_panel_minigameboard_bg_alpha "" "if set to something else than \"\" = override default panel background alpha"
+ seta hud_panel_minigameboard_bg_border "" "if set to something else than \"\" = override default size of border around the background"
+ seta hud_panel_minigameboard_bg_padding "" "if set to something else than \"\" = override default padding of contents from border"
+
+ seta hud_panel_minigamestatus "" "enable/disable this panel"
+ seta hud_panel_minigamestatus_pos "" "position of this panel"
+ seta hud_panel_minigamestatus_size "" "size of this panel"
+ seta hud_panel_minigamestatus_bg "" "if set to something else than \"\" = override default background"
+ seta hud_panel_minigamestatus_bg_color "" "if set to something else than \"\" = override default panel background color"
+ seta hud_panel_minigamestatus_bg_color_team "" "override panel color with team color in team based games"
+ seta hud_panel_minigamestatus_bg_alpha "" "if set to something else than \"\" = override default panel background alpha"
+ seta hud_panel_minigamestatus_bg_border "" "if set to something else than \"\" = override default size of border around the background"
+ seta hud_panel_minigamestatus_bg_padding "" "if set to something else than \"\" = override default padding of contents from border"
+
+ seta hud_panel_minigamehelp "" "enable/disable this panel"
+ seta hud_panel_minigamehelp_pos "" "position of this panel"
+ seta hud_panel_minigamehelp_size "" "size of this panel"
+ seta hud_panel_minigamehelp_bg "" "if set to something else than \"\" = override default background"
+ seta hud_panel_minigamehelp_bg_color "" "if set to something else than \"\" = override default panel background color"
+ seta hud_panel_minigamehelp_bg_color_team "" "override panel color with team color in team based games"
+ seta hud_panel_minigamehelp_bg_alpha "" "if set to something else than \"\" = override default panel background alpha"
+ seta hud_panel_minigamehelp_bg_border "" "if set to something else than \"\" = override default size of border around the background"
+ seta hud_panel_minigamehelp_bg_padding "" "if set to something else than \"\" = override default padding of contents from border"
+
+ seta hud_panel_minigamemenu "" "enable/disable this panel"
+ seta hud_panel_minigamemenu_pos "" "position of this panel"
+ seta hud_panel_minigamemenu_size "" "size of this panel"
+ seta hud_panel_minigamemenu_bg "" "if set to something else than \"\" = override default background"
+ seta hud_panel_minigamemenu_bg_color "" "if set to something else than \"\" = override default panel background color"
+ seta hud_panel_minigamemenu_bg_color_team "" "override panel color with team color in team based games"
+ seta hud_panel_minigamemenu_bg_alpha "" "if set to something else than \"\" = override default panel background alpha"
+ seta hud_panel_minigamemenu_bg_border "" "if set to something else than \"\" = override default size of border around the background"
+ seta hud_panel_minigamemenu_bg_padding "" "if set to something else than \"\" = override default padding of contents from border"
seta hud_panel_buffs_bg_alpha ""
seta hud_panel_buffs_bg_border ""
seta hud_panel_buffs_bg_padding ""
+seta hud_panel_buffs_progressbar 1
+seta hud_panel_buffs_progressbar_name "progressbar"
+ seta hud_panel_minigameboard "1"
+ seta hud_panel_minigameboard_pos "0.22 0.15"
+ seta hud_panel_minigameboard_size "0.50 0.60"
+ seta hud_panel_minigameboard_bg "border_small"
+ seta hud_panel_minigameboard_bg_color ""
+ seta hud_panel_minigameboard_bg_color_team ""
+ seta hud_panel_minigameboard_bg_alpha ""
+ seta hud_panel_minigameboard_bg_border ""
+ seta hud_panel_minigameboard_bg_padding ""
+
+ seta hud_panel_minigamestatus "1"
+ seta hud_panel_minigamestatus_pos "0.74 0.15"
+ seta hud_panel_minigamestatus_size "0.2 0.60"
+ seta hud_panel_minigamestatus_bg "border_small"
+ seta hud_panel_minigamestatus_bg_color ""
+ seta hud_panel_minigamestatus_bg_color_team ""
+ seta hud_panel_minigamestatus_bg_alpha ""
+ seta hud_panel_minigamestatus_bg_border ""
+ seta hud_panel_minigamestatus_bg_padding ""
+
+ seta hud_panel_minigamehelp "1"
+ seta hud_panel_minigamehelp_pos "0.22 0.78"
+ seta hud_panel_minigamehelp_size "0.50 0.20"
+ seta hud_panel_minigamehelp_bg ""
+ seta hud_panel_minigamehelp_bg_color ""
+ seta hud_panel_minigamehelp_bg_color_team ""
+ seta hud_panel_minigamehelp_bg_alpha ""
+ seta hud_panel_minigamehelp_bg_border ""
+ seta hud_panel_minigamehelp_bg_padding ""
+
+ seta hud_panel_minigamemenu "0"
+ seta hud_panel_minigamemenu_pos "0 0.26"
+ seta hud_panel_minigamemenu_size "0.2 0.49"
+ seta hud_panel_minigamemenu_bg "border_small"
+ seta hud_panel_minigamemenu_bg_color ""
+ seta hud_panel_minigamemenu_bg_color_team ""
+ seta hud_panel_minigamemenu_bg_alpha ""
+ seta hud_panel_minigamemenu_bg_border ""
+ seta hud_panel_minigamemenu_bg_padding ""
+
menu_sync
seta hud_panel_buffs_bg_alpha ""
seta hud_panel_buffs_bg_border ""
seta hud_panel_buffs_bg_padding ""
+seta hud_panel_buffs_progressbar 1
+seta hud_panel_buffs_progressbar_name "progressbar"
+ seta hud_panel_minigameboard "1"
+ seta hud_panel_minigameboard_pos "0.22 0.15"
+ seta hud_panel_minigameboard_size "0.50 0.60"
+ seta hud_panel_minigameboard_bg "border_small"
+ seta hud_panel_minigameboard_bg_color ""
+ seta hud_panel_minigameboard_bg_color_team ""
+ seta hud_panel_minigameboard_bg_alpha ""
+ seta hud_panel_minigameboard_bg_border ""
+ seta hud_panel_minigameboard_bg_padding ""
+
+ seta hud_panel_minigamestatus "1"
+ seta hud_panel_minigamestatus_pos "0.74 0.15"
+ seta hud_panel_minigamestatus_size "0.2 0.60"
+ seta hud_panel_minigamestatus_bg "border_small"
+ seta hud_panel_minigamestatus_bg_color ""
+ seta hud_panel_minigamestatus_bg_color_team ""
+ seta hud_panel_minigamestatus_bg_alpha ""
+ seta hud_panel_minigamestatus_bg_border ""
+ seta hud_panel_minigamestatus_bg_padding ""
+
+ seta hud_panel_minigamehelp "1"
+ seta hud_panel_minigamehelp_pos "0.22 0.78"
+ seta hud_panel_minigamehelp_size "0.50 0.20"
+ seta hud_panel_minigamehelp_bg ""
+ seta hud_panel_minigamehelp_bg_color ""
+ seta hud_panel_minigamehelp_bg_color_team ""
+ seta hud_panel_minigamehelp_bg_alpha ""
+ seta hud_panel_minigamehelp_bg_border ""
+ seta hud_panel_minigamehelp_bg_padding ""
+
+ seta hud_panel_minigamemenu "0"
+ seta hud_panel_minigamemenu_pos "0 0.26"
+ seta hud_panel_minigamemenu_size "0.2 0.49"
+ seta hud_panel_minigamemenu_bg "border_small"
+ seta hud_panel_minigamemenu_bg_color ""
+ seta hud_panel_minigamemenu_bg_color_team ""
+ seta hud_panel_minigamemenu_bg_alpha ""
+ seta hud_panel_minigamemenu_bg_border ""
+ seta hud_panel_minigamemenu_bg_padding ""
+
menu_sync
seta hud_panel_buffs_bg_alpha ""
seta hud_panel_buffs_bg_border ""
seta hud_panel_buffs_bg_padding ""
+seta hud_panel_buffs_progressbar 1
+seta hud_panel_buffs_progressbar_name "progressbar"
+ seta hud_panel_minigameboard "1"
+ seta hud_panel_minigameboard_pos "0.22 0.15"
+ seta hud_panel_minigameboard_size "0.50 0.60"
+ seta hud_panel_minigameboard_bg "border_small"
+ seta hud_panel_minigameboard_bg_color ""
+ seta hud_panel_minigameboard_bg_color_team ""
+ seta hud_panel_minigameboard_bg_alpha ""
+ seta hud_panel_minigameboard_bg_border ""
+ seta hud_panel_minigameboard_bg_padding ""
+
+ seta hud_panel_minigamestatus "1"
+ seta hud_panel_minigamestatus_pos "0.74 0.15"
+ seta hud_panel_minigamestatus_size "0.2 0.60"
+ seta hud_panel_minigamestatus_bg "border_small"
+ seta hud_panel_minigamestatus_bg_color ""
+ seta hud_panel_minigamestatus_bg_color_team ""
+ seta hud_panel_minigamestatus_bg_alpha ""
+ seta hud_panel_minigamestatus_bg_border ""
+ seta hud_panel_minigamestatus_bg_padding ""
+
+ seta hud_panel_minigamehelp "1"
+ seta hud_panel_minigamehelp_pos "0.22 0.78"
+ seta hud_panel_minigamehelp_size "0.50 0.20"
+ seta hud_panel_minigamehelp_bg ""
+ seta hud_panel_minigamehelp_bg_color ""
+ seta hud_panel_minigamehelp_bg_color_team ""
+ seta hud_panel_minigamehelp_bg_alpha ""
+ seta hud_panel_minigamehelp_bg_border ""
+ seta hud_panel_minigamehelp_bg_padding ""
+
+ seta hud_panel_minigamemenu "0"
+ seta hud_panel_minigamemenu_pos "0 0.26"
+ seta hud_panel_minigamemenu_size "0.2 0.49"
+ seta hud_panel_minigamemenu_bg "border_small"
+ seta hud_panel_minigamemenu_bg_color ""
+ seta hud_panel_minigamemenu_bg_color_team ""
+ seta hud_panel_minigamemenu_bg_alpha ""
+ seta hud_panel_minigamemenu_bg_border ""
+ seta hud_panel_minigamemenu_bg_padding ""
+
menu_sync
seta hud_panel_buffs_bg_alpha ""
seta hud_panel_buffs_bg_border ""
seta hud_panel_buffs_bg_padding ""
+seta hud_panel_buffs_progressbar 1
+seta hud_panel_buffs_progressbar_name "progressbar"
+ seta hud_panel_minigameboard "1"
+ seta hud_panel_minigameboard_pos "0.22 0.15"
+ seta hud_panel_minigameboard_size "0.50 0.60"
+ seta hud_panel_minigameboard_bg "border_small"
+ seta hud_panel_minigameboard_bg_color ""
+ seta hud_panel_minigameboard_bg_color_team ""
+ seta hud_panel_minigameboard_bg_alpha ""
+ seta hud_panel_minigameboard_bg_border ""
+ seta hud_panel_minigameboard_bg_padding ""
+
+ seta hud_panel_minigamestatus "1"
+ seta hud_panel_minigamestatus_pos "0.74 0.15"
+ seta hud_panel_minigamestatus_size "0.2 0.60"
+ seta hud_panel_minigamestatus_bg "border_small"
+ seta hud_panel_minigamestatus_bg_color ""
+ seta hud_panel_minigamestatus_bg_color_team ""
+ seta hud_panel_minigamestatus_bg_alpha ""
+ seta hud_panel_minigamestatus_bg_border ""
+ seta hud_panel_minigamestatus_bg_padding ""
+
+ seta hud_panel_minigamehelp "1"
+ seta hud_panel_minigamehelp_pos "0.22 0.78"
+ seta hud_panel_minigamehelp_size "0.50 0.20"
+ seta hud_panel_minigamehelp_bg ""
+ seta hud_panel_minigamehelp_bg_color ""
+ seta hud_panel_minigamehelp_bg_color_team ""
+ seta hud_panel_minigamehelp_bg_alpha ""
+ seta hud_panel_minigamehelp_bg_border ""
+ seta hud_panel_minigamehelp_bg_padding ""
+
+ seta hud_panel_minigamemenu "0"
+ seta hud_panel_minigamemenu_pos "0 0.26"
+ seta hud_panel_minigamemenu_size "0.2 0.49"
+ seta hud_panel_minigamemenu_bg "border_small"
+ seta hud_panel_minigamemenu_bg_color ""
+ seta hud_panel_minigamemenu_bg_color_team ""
+ seta hud_panel_minigamemenu_bg_alpha ""
+ seta hud_panel_minigamemenu_bg_border ""
+ seta hud_panel_minigamemenu_bg_padding ""
+
menu_sync
seta hud_panel_buffs_bg_alpha ""
seta hud_panel_buffs_bg_border ""
seta hud_panel_buffs_bg_padding ""
+seta hud_panel_buffs_progressbar 1
+seta hud_panel_buffs_progressbar_name "progressbar"
+ seta hud_panel_minigameboard "1"
+ seta hud_panel_minigameboard_pos "0.22 0.15"
+ seta hud_panel_minigameboard_size "0.50 0.60"
+ seta hud_panel_minigameboard_bg "border_small"
+ seta hud_panel_minigameboard_bg_color ""
+ seta hud_panel_minigameboard_bg_color_team ""
+ seta hud_panel_minigameboard_bg_alpha ""
+ seta hud_panel_minigameboard_bg_border ""
+ seta hud_panel_minigameboard_bg_padding ""
+
+ seta hud_panel_minigamestatus "1"
+ seta hud_panel_minigamestatus_pos "0.74 0.15"
+ seta hud_panel_minigamestatus_size "0.2 0.60"
+ seta hud_panel_minigamestatus_bg "border_small"
+ seta hud_panel_minigamestatus_bg_color ""
+ seta hud_panel_minigamestatus_bg_color_team ""
+ seta hud_panel_minigamestatus_bg_alpha ""
+ seta hud_panel_minigamestatus_bg_border ""
+ seta hud_panel_minigamestatus_bg_padding ""
+
+ seta hud_panel_minigamehelp "1"
+ seta hud_panel_minigamehelp_pos "0.22 0.78"
+ seta hud_panel_minigamehelp_size "0.50 0.20"
+ seta hud_panel_minigamehelp_bg ""
+ seta hud_panel_minigamehelp_bg_color ""
+ seta hud_panel_minigamehelp_bg_color_team ""
+ seta hud_panel_minigamehelp_bg_alpha ""
+ seta hud_panel_minigamehelp_bg_border ""
+ seta hud_panel_minigamehelp_bg_padding ""
+
+ seta hud_panel_minigamemenu "0"
+ seta hud_panel_minigamemenu_pos "0 0.26"
+ seta hud_panel_minigamemenu_size "0.2 0.49"
+ seta hud_panel_minigamemenu_bg "border_small"
+ seta hud_panel_minigamemenu_bg_color ""
+ seta hud_panel_minigamemenu_bg_color_team ""
+ seta hud_panel_minigamemenu_bg_alpha ""
+ seta hud_panel_minigamemenu_bg_border ""
+ seta hud_panel_minigamemenu_bg_padding ""
+
menu_sync
seta hud_panel_buffs_bg_alpha ""
seta hud_panel_buffs_bg_border ""
seta hud_panel_buffs_bg_padding ""
+seta hud_panel_buffs_progressbar 1
+seta hud_panel_buffs_progressbar_name "progressbar"
+ seta hud_panel_minigameboard "1"
+ seta hud_panel_minigameboard_pos "0.22 0.15"
+ seta hud_panel_minigameboard_size "0.50 0.60"
+ seta hud_panel_minigameboard_bg "border_small"
+ seta hud_panel_minigameboard_bg_color ""
+ seta hud_panel_minigameboard_bg_color_team ""
+ seta hud_panel_minigameboard_bg_alpha ""
+ seta hud_panel_minigameboard_bg_border ""
+ seta hud_panel_minigameboard_bg_padding ""
+
+ seta hud_panel_minigamestatus "1"
+ seta hud_panel_minigamestatus_pos "0.74 0.15"
+ seta hud_panel_minigamestatus_size "0.2 0.60"
+ seta hud_panel_minigamestatus_bg "border_small"
+ seta hud_panel_minigamestatus_bg_color ""
+ seta hud_panel_minigamestatus_bg_color_team ""
+ seta hud_panel_minigamestatus_bg_alpha ""
+ seta hud_panel_minigamestatus_bg_border ""
+ seta hud_panel_minigamestatus_bg_padding ""
+
+ seta hud_panel_minigamehelp "1"
+ seta hud_panel_minigamehelp_pos "0.22 0.78"
+ seta hud_panel_minigamehelp_size "0.50 0.20"
+ seta hud_panel_minigamehelp_bg ""
+ seta hud_panel_minigamehelp_bg_color ""
+ seta hud_panel_minigamehelp_bg_color_team ""
+ seta hud_panel_minigamehelp_bg_alpha ""
+ seta hud_panel_minigamehelp_bg_border ""
+ seta hud_panel_minigamehelp_bg_padding ""
+
+ seta hud_panel_minigamemenu "0"
+ seta hud_panel_minigamemenu_pos "0 0.26"
+ seta hud_panel_minigamemenu_size "0.2 0.49"
+ seta hud_panel_minigamemenu_bg "border_small"
+ seta hud_panel_minigamemenu_bg_color ""
+ seta hud_panel_minigamemenu_bg_color_team ""
+ seta hud_panel_minigamemenu_bg_alpha ""
+ seta hud_panel_minigamemenu_bg_border ""
+ seta hud_panel_minigamemenu_bg_padding ""
+
menu_sync
print(" 'configname' is the name to save to for \"save\" action,\n");
print(" 'radartoggle' is to control hud_panel_radar_maximized for \"radar\" action,\n");
print(" and 'layout' is how to organize the scoreboard columns for the set action.\n");
- print(" Full list of commands here: \"configure, quickmenu, save, scoreboard_columns_help, scoreboard_columns_set, radar.\"\n");
- print(" Full list of commands here: \"configure, minigame, save, scoreboard_columns_help, scoreboard_columns_set, radar.\"\n");
++ print(" Full list of commands here: \"configure, quickmenu, minigame, save, scoreboard_columns_help, scoreboard_columns_set, radar.\"\n");
return;
}
}
CALL_ACCUMULATED_FUNCTION(RegisterDeathtypes);
CALL_ACCUMULATED_FUNCTION(RegisterHUD_Panels);
CALL_ACCUMULATED_FUNCTION(RegisterBuffs);
+ CALL_ACCUMULATED_FUNCTION(RegisterEffects);
+
+ initialize_minigames();
+ initialize_minigames();
+
WaypointSprite_Load();
// precaches
{
if ( !active_minigame )
return;
-
++
active_minigame.minigame_event(active_minigame,"deactivate");
entity e = world;
- while( (e = findentity(e, owner, self)) )
+ while( (e = findentity(e, owner, active_minigame)) )
if ( e.minigame_autoclean )
{
minigame_autoclean_entity(e);
if ( minigame_ent )
minigame_ent.minigame_event(minigame_ent,"network_receive",self,sf);
--
- dprint("CL Reading entity: ",ftos(num_for_edict(self)),
- " classname:",self.classname," enttype:",ftos(self.enttype) );
- dprint(" sf:",ftos(sf)," netname:",self.netname,"\n\n");
++
+ if ( sf & MINIG_SF_CREATE )
+ {
+ dprint("CL Reading entity: ",ftos(num_for_edict(self)),
+ " classname:",self.classname," enttype:",ftos(self.enttype) );
+ dprint(" sf:",ftos(sf)," netname:",self.netname,"\n\n");
+ }
}
#undef ReadFloat
#undef ReadString
if ( take_until > strlen(s) )
take_until = strlen(s);
--
- float i;
- for ( i = 0; i < take_until; i++ )
++
+ for ( int i = 0; i < take_until; i++ )
if ( substring(s,i,1) == "\n" )
{
take_until = i;
HUD_MinigameMenu_DrawEntry(panel_pos,_("Minigames"),hud_fontsize*2,'0.25 0.47 0.72');
panel_pos_y += hud_fontsize_y*2;
--
- entity e;
++
vector color;
vector offset;
float itemh;
#include "nmm.qc"
#include "ttt.qc"
+//#include "c4.qc"
+ #include "pong.qc"
/**
* Registration:
#define REGISTERED_MINIGAMES \
MINIGAME(nmm, "Nine Men's Morris") \
MINIGAME(ttt, "Tic Tac Toe") \
+ MINIGAME(pong, "Pong") \
/*empty line*/
+//MINIGAME(c4, "Connect Four") \
+
/**
* Set up automatic entity read/write functionality
* To ensure that everything is handled automatically, spawn on the server using msle_spawn
#include "weapons/hitplot.qh"
#include "weapons/weaponsystem.qh"
+#include "../common/animdecide.qh"
+
+#include "../common/effects.qh"
+
#include "../common/net_notice.qh"
+#include "../common/physics.qh"
+
+#include "../common/triggers/subs.qh"
+#include "../common/triggers/triggers.qh"
+#include "../common/triggers/trigger/secret.qh"
+
+#include "../common/minigames/sv_minigames.qh"
+ #include "../common/minigames/sv_minigames.qh"
+
#include "../common/monsters/sv_monsters.qh"
+#include "../common/vehicles/sv_vehicles.qh"
+
#include "../warpzonelib/server.qh"
float c1, c2, c3, c4;
self.chatbubbleentity = spawn();
self.chatbubbleentity.owner = self;
self.chatbubbleentity.exteriormodeltoclient = self;
+ self.chatbubbleentity.alpha = 1;
+ self.chatbubbleentity.customizeentityforclient = ChatBubbleCustomize;
self.chatbubbleentity.think = ChatBubbleThink;
self.chatbubbleentity.nextthink = time;
- setmodel(self.chatbubbleentity, "models/misc/chatbubble.spr"); // precision set below
+ setmodel(self.chatbubbleentity, "models/misc/chatbubble.md3"); // precision set below
//setorigin(self.chatbubbleentity, self.origin + '0 0 15' + self.maxs_z * '0 0 1');
- setorigin(self.chatbubbleentity, '0 0 15' + self.maxs.z * '0 0 1');
+ setorigin(self.chatbubbleentity, '0 0 15' + self.maxs_z * '0 0 1');
setattachment(self.chatbubbleentity, self, ""); // sticks to moving player better, also conserves bandwidth
self.chatbubbleentity.mdl = self.chatbubbleentity.model;
//self.chatbubbleentity.model = "";
CALL_ACCUMULATED_FUNCTION(RegisterNotifications);
CALL_ACCUMULATED_FUNCTION(RegisterDeathtypes);
CALL_ACCUMULATED_FUNCTION(RegisterBuffs);
+ CALL_ACCUMULATED_FUNCTION(RegisterEffects);
+
+ initialize_minigames();
+ initialize_minigames();
+
ServerProgsDB = db_load(strcat("server.db", autocvar_sessionid));
TemporaryDB = db_create();