Moderators: Nexuiz Moderators, Moderators
-192,6 +191,10 @@
float view_set;
float camera_mode;
vector camera_offset, current_origin, mouse_angles, current_camera_offset, new_angles;
+
+string wcross_wep;
+float wcross_alpha, wcross_style, wcross_custom;
+vector wcross_color, wcross_size;
void CSQC_UpdateView(float w, float h)
{
entity e;
-295,9 +298,26 @@
}
if(last_weapon != activeweapon) {
+ :wcross_recheck
+ wcross_custom = cvar("cl_per_weapon_crosshairs");
+ if(!wcross_custom)
+ wcross_wep = "normal";
+ else {
+ e = get_weaponinfo(activeweapon);
+ wcross_wep = e.netname;
+ }
weapontime = time;
last_weapon = activeweapon;
}
+ if(wcross_custom != cvar("crosshair_custom"))
+ goto wcross_recheck;
+ wcross_style = cvar(strcat("crosshair_", wcross_wep));
+ wcross_color_x = cvar(strcat("crosshair_", wcross_wep, "_color_red"));
+ wcross_color_y = cvar(strcat("crosshair_", wcross_wep, "_color_green"));
+ wcross_color_z = cvar(strcat("crosshair_", wcross_wep, "_color_blue"));
+ wcross_size_x = cvar(strcat("crosshair_", wcross_wep, "_size")) * 24;
+ wcross_size_y = cvar(strcat("crosshair_", wcross_wep, "_size")) * 24;
+ wcross_alpha = cvar(strcat("crosshair_", wcross_wep, "_color_alpha")); -295,9 +298,26 @@
}
if(last_weapon != activeweapon) {
weapontime = time;
last_weapon = activeweapon;
}
+ string wcross_wep; // strings are "" on init (do not keep this comment :P )
+ float wcross_alpha, wcross_style;
+ vector wcross_color, wcross_size;
+ if(cvar("crosshair_per_weapon"))
+ e = get_weaponinfo(activeweapon);
+ wcross_wep = e.netname;
+ }
+ wcross_style = cvar(strcat("crosshair_", wcross_wep));
+ wcross_color_x = cvar(strcat("crosshair_", wcross_wep, "_color_red"));
+ wcross_color_y = cvar(strcat("crosshair_", wcross_wep, "_color_green"));
+ wcross_color_z = cvar(strcat("crosshair_", wcross_wep, "_color_blue"));
+ wcross_size_x = cvar(strcat("crosshair_", wcross_wep, "_size")) * 24;
+ wcross_size_y = wcross_size_x;
+ wcross_alpha = cvar(strcat("crosshair_", wcross_wep, "_color_alpha"));MirceaKitsune wrote:At the moment there's still a small problem in the new adjusters you set up however. With "Per weapon crosshairs" enabled, if you adjust the size or alpha that modifies these settings for each weapons crosshair. That should probably still remain disabled until we can have every adjuster there (the crosshair buttons, size slider, alpha slider, R G B sliders) working for every individual weapon depending on what you have set up.
COLOR_TEAM1 (red) '1 0 0'
COLOR_TEAM2 (blue) '0 0 1'
COLOR_TEAM3 (yellow) '1 1 0'
COLOR_TEAM4 (pink) '1 0 1'divVerent wrote:You really shouldn't registercvar saved cvars from QC. They won't get saved when not playing.
Better enter them into defaultNexuiz.cfg, and do something sensible if they are not set.
victim wrote:divVerent wrote:You really shouldn't registercvar saved cvars from QC. They won't get saved when not playing.
Better enter them into defaultNexuiz.cfg, and do something sensible if they are not set.
A new patch here
victim wrote:A change to the behaviour of the Key Hunt hud. Now it only dislays the status of your keys and your teams keys. It no longer displays any details of the keys held by the other team(s).
MirceaKitsune wrote:Made a few more changes to the own footsteps patch to update it to the latest SVN and fix a few things I had forgotten. New LINK 1 and LINK 2 here. I'd like to know a verdict on this patch as well if that's ok, to know if to keep it updated or not. Are there any other changes required, or is this feature not going to be implemented at all even the cvar?
- Once I have enough understanding: Making the nexbeam clientside, this has two advantages:
1) You can allow a command line cl_oldnexgunbeam 0/1 that will help the Nexuiz ladder to get rid of the "hack" pk3 file that replaced effectinfo.txt, This cvar could set the nexgun beam to be v2.4.2 style. When this is handled in CSQC you can even enable the prettier SVN beam again when watching/recording demos
2) Clientside nexgun shot prediction: draw the beam (and play the sound) immediately on servers that use g_antilag, to be a "better" visible representation (e.g. cl_predictnexgunbeam, defaults to 0 of course)
GreEn`mArine wrote:I'm not sure whether this works, but could it be possible that you do this feature entirely in CSQC ?
mand1nga wrote:victim wrote:divVerent wrote:You really shouldn't registercvar saved cvars from QC. They won't get saved when not playing.
Better enter them into defaultNexuiz.cfg, and do something sensible if they are not set.
A new patch here
It seems the registercvar calls are still there. Some can be safely removed, some others like sbar_flagstatus_pos not. I guess you will need to add the "seta" prefix to these cvars on defaultNexuiz.cfg.
Return to Nexuiz - Development