]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Move polytrail cvars to a separate config file
authorMario <mario.mario@y7mail.com>
Tue, 12 Nov 2024 02:55:59 +0000 (12:55 +1000)
committerMario <mario.mario@y7mail.com>
Tue, 12 Nov 2024 02:55:59 +0000 (12:55 +1000)
polytrails.cfg [new file with mode: 0644]
qcsrc/client/weapons/projectile.qc
qcsrc/client/weapons/projectile.qh
xonotic-client.cfg

diff --git a/polytrails.cfg b/polytrails.cfg
new file mode 100644 (file)
index 0000000..7dda27c
--- /dev/null
@@ -0,0 +1,68 @@
+// Poly Trails
+// a polygon rendering system for trails
+
+seta cl_polytrails 1 "enable polygon-based trail effect drawing (looks better but may impact performance)"
+
+// electro primary bolt
+seta cl_polytrails_electro_bolt 1
+seta cl_polytrails_electro_bolt_rgb0 "0.75 0.75 1"
+seta cl_polytrails_electro_bolt_rgb1 "0.45 0.45 1"
+seta cl_polytrails_electro_bolt_rgb2 "0.1 0.1 0.75"
+seta cl_polytrails_electro_bolt_alpha0 1
+seta cl_polytrails_electro_bolt_alpha1 0.5
+seta cl_polytrails_electro_bolt_alpha2 0
+seta cl_polytrails_electro_bolt_thickness0 5
+seta cl_polytrails_electro_bolt_thickness1 5
+seta cl_polytrails_electro_bolt_thickness2 0
+seta cl_polytrails_electro_bolt_lifetime 0.27
+seta cl_polytrails_electro_bolt_segmentsize 10
+seta cl_polytrails_electro_bolt_noise 5
+seta cl_polytrails_electro_bolt_noisefunc "chaotic"
+
+// electro secondary orb
+seta cl_polytrails_electro_orb 1
+seta cl_polytrails_electro_orb_rgb0 "0.8 0.8 1"
+seta cl_polytrails_electro_orb_rgb1 "0.5 0.5 1"
+seta cl_polytrails_electro_orb_rgb2 "0.1 0.1 0.7"
+seta cl_polytrails_electro_orb_alpha0 1
+seta cl_polytrails_electro_orb_alpha1 0.5
+seta cl_polytrails_electro_orb_alpha2 0
+seta cl_polytrails_electro_orb_thickness0 15
+seta cl_polytrails_electro_orb_thickness1 7
+seta cl_polytrails_electro_orb_thickness2 0
+seta cl_polytrails_electro_orb_lifetime 0.18
+seta cl_polytrails_electro_orb_segmentsize 10
+seta cl_polytrails_electro_orb_noise 10
+seta cl_polytrails_electro_orb_noisefunc "chaotic"
+
+// crylink bouncing projectile
+seta cl_polytrails_crylink_bouncing 1
+seta cl_polytrails_crylink_bouncing_rgb0 "0.7 0 1"
+seta cl_polytrails_crylink_bouncing_rgb1 "0.5 0 1"
+seta cl_polytrails_crylink_bouncing_rgb2 "0.1 0 0.8"
+seta cl_polytrails_crylink_bouncing_alpha0 0.5
+seta cl_polytrails_crylink_bouncing_alpha1 0.2
+seta cl_polytrails_crylink_bouncing_alpha2 0
+seta cl_polytrails_crylink_bouncing_thickness0 5
+seta cl_polytrails_crylink_bouncing_thickness1 3
+seta cl_polytrails_crylink_bouncing_thickness2 3
+seta cl_polytrails_crylink_bouncing_lifetime 0.15
+seta cl_polytrails_crylink_bouncing_segmentsize 80
+seta cl_polytrails_crylink_bouncing_noise 0
+seta cl_polytrails_crylink_bouncing_noisefunc "none"
+
+// crylink bolt projectiles
+seta cl_polytrails_crylink_bolt 1
+seta cl_polytrails_crylink_bolt_rgb0 "0.7 0 1"
+seta cl_polytrails_crylink_bolt_rgb1 "0.5 0 1"
+seta cl_polytrails_crylink_bolt_rgb2 "0.1 0 0.8"
+seta cl_polytrails_crylink_bolt_alpha0 0.75
+seta cl_polytrails_crylink_bolt_alpha1 0.2
+seta cl_polytrails_crylink_bolt_alpha2 0
+seta cl_polytrails_crylink_bolt_thickness0 5
+seta cl_polytrails_crylink_bolt_thickness1 3
+seta cl_polytrails_crylink_bolt_thickness2 3
+seta cl_polytrails_crylink_bolt_lifetime 0.15
+seta cl_polytrails_crylink_bolt_segmentsize 80
+seta cl_polytrails_crylink_bolt_noise 0
+seta cl_polytrails_crylink_bolt_noisefunc "none"
index 8bbb435e0415e938b3cc0cb36f9d8a72050a2c27..be041ffc0fa49293b75c68934d1768937340930b 100644 (file)
@@ -184,66 +184,6 @@ void Ent_RemoveProjectile(entity this)
        }
 }
 
-bool autocvar_cl_polytrails_crylink_bouncing = true;
-vector autocvar_cl_polytrails_crylink_bouncing_rgb0 = '0.7 0 1';
-vector autocvar_cl_polytrails_crylink_bouncing_rgb1 = '0.5 0 1';
-vector autocvar_cl_polytrails_crylink_bouncing_rgb2 = '0.1 0 0.8';
-float autocvar_cl_polytrails_crylink_bouncing_alpha0 = 0.5;
-float autocvar_cl_polytrails_crylink_bouncing_alpha1 = 0.2;
-float autocvar_cl_polytrails_crylink_bouncing_alpha2 = 0;
-float autocvar_cl_polytrails_crylink_bouncing_thickness0 = 5;
-float autocvar_cl_polytrails_crylink_bouncing_thickness1 = 3;
-float autocvar_cl_polytrails_crylink_bouncing_thickness2 = 3;
-float autocvar_cl_polytrails_crylink_bouncing_lifetime = 0.15;
-float autocvar_cl_polytrails_crylink_bouncing_segmentsize = 80;
-float autocvar_cl_polytrails_crylink_bouncing_noise = 0;
-string autocvar_cl_polytrails_crylink_bouncing_noisefunc = "none";
-
-bool autocvar_cl_polytrails_crylink_bolt = true;
-vector autocvar_cl_polytrails_crylink_bolt_rgb0 = '0.7 0 1';
-vector autocvar_cl_polytrails_crylink_bolt_rgb1 = '0.5 0 1';
-vector autocvar_cl_polytrails_crylink_bolt_rgb2 = '0.1 0 0.8';
-float autocvar_cl_polytrails_crylink_bolt_alpha0 = 0.75;
-float autocvar_cl_polytrails_crylink_bolt_alpha1 = 0.2;
-float autocvar_cl_polytrails_crylink_bolt_alpha2 = 0;
-float autocvar_cl_polytrails_crylink_bolt_thickness0 = 5;
-float autocvar_cl_polytrails_crylink_bolt_thickness1 = 3;
-float autocvar_cl_polytrails_crylink_bolt_thickness2 = 3;
-float autocvar_cl_polytrails_crylink_bolt_lifetime = 0.15;
-float autocvar_cl_polytrails_crylink_bolt_segmentsize = 80;
-float autocvar_cl_polytrails_crylink_bolt_noise = 0;
-string autocvar_cl_polytrails_crylink_bolt_noisefunc = "none";
-
-bool autocvar_cl_polytrails_electro_bolt = true;
-vector autocvar_cl_polytrails_electro_bolt_rgb0 = '0.75 0.75 1';
-vector autocvar_cl_polytrails_electro_bolt_rgb1 = '0.45 0.45 1';
-vector autocvar_cl_polytrails_electro_bolt_rgb2 = '0.1 0.1 0.75';
-float autocvar_cl_polytrails_electro_bolt_alpha0 = 1;
-float autocvar_cl_polytrails_electro_bolt_alpha1 = 0.5;
-float autocvar_cl_polytrails_electro_bolt_alpha2 = 0;
-float autocvar_cl_polytrails_electro_bolt_thickness0 = 5;
-float autocvar_cl_polytrails_electro_bolt_thickness1 = 5;
-float autocvar_cl_polytrails_electro_bolt_thickness2 = 0;
-float autocvar_cl_polytrails_electro_bolt_lifetime = 0.27;
-float autocvar_cl_polytrails_electro_bolt_segmentsize = 10;
-float autocvar_cl_polytrails_electro_bolt_noise = 5;
-string autocvar_cl_polytrails_electro_bolt_noisefunc = "chaotic";
-
-bool autocvar_cl_polytrails_electro_orb = true;
-vector autocvar_cl_polytrails_electro_orb_rgb0 = '0.8 0.8 1';
-vector autocvar_cl_polytrails_electro_orb_rgb1 = '0.5 0.5 1';
-vector autocvar_cl_polytrails_electro_orb_rgb2 = '0.1 0.1 0.7';
-float autocvar_cl_polytrails_electro_orb_alpha0 = 1;
-float autocvar_cl_polytrails_electro_orb_alpha1 = 0.5;
-float autocvar_cl_polytrails_electro_orb_alpha2 = 0;
-float autocvar_cl_polytrails_electro_orb_thickness0 = 15;
-float autocvar_cl_polytrails_electro_orb_thickness1 = 7;
-float autocvar_cl_polytrails_electro_orb_thickness2 = 0;
-float autocvar_cl_polytrails_electro_orb_lifetime = 0.18;
-float autocvar_cl_polytrails_electro_orb_segmentsize = 10;
-float autocvar_cl_polytrails_electro_orb_noise = 10;
-string autocvar_cl_polytrails_electro_orb_noisefunc = "chaotic";
-
 NET_HANDLE(ENT_CLIENT_PROJECTILE, bool isnew)
 {
        // projectile properties:
index b3cfd3e9b1455711c05749b8f39085548ef7149a..9c7fa6c6e3b8fd20ba48be9ccad4ffb844a14cb3 100644 (file)
@@ -31,3 +31,64 @@ void Projectile_Draw(entity this);
 void loopsound(entity e, int ch, Sound samp, float vol, float attn);
 
 void Ent_RemoveProjectile(entity this);
+
+// projectile polytrails
+bool autocvar_cl_polytrails_crylink_bouncing = true;
+vector autocvar_cl_polytrails_crylink_bouncing_rgb0 = '0.7 0 1';
+vector autocvar_cl_polytrails_crylink_bouncing_rgb1 = '0.5 0 1';
+vector autocvar_cl_polytrails_crylink_bouncing_rgb2 = '0.1 0 0.8';
+float autocvar_cl_polytrails_crylink_bouncing_alpha0 = 0.5;
+float autocvar_cl_polytrails_crylink_bouncing_alpha1 = 0.2;
+float autocvar_cl_polytrails_crylink_bouncing_alpha2 = 0;
+float autocvar_cl_polytrails_crylink_bouncing_thickness0 = 5;
+float autocvar_cl_polytrails_crylink_bouncing_thickness1 = 3;
+float autocvar_cl_polytrails_crylink_bouncing_thickness2 = 3;
+float autocvar_cl_polytrails_crylink_bouncing_lifetime = 0.15;
+float autocvar_cl_polytrails_crylink_bouncing_segmentsize = 80;
+float autocvar_cl_polytrails_crylink_bouncing_noise = 0;
+string autocvar_cl_polytrails_crylink_bouncing_noisefunc = "none";
+
+bool autocvar_cl_polytrails_crylink_bolt = true;
+vector autocvar_cl_polytrails_crylink_bolt_rgb0 = '0.7 0 1';
+vector autocvar_cl_polytrails_crylink_bolt_rgb1 = '0.5 0 1';
+vector autocvar_cl_polytrails_crylink_bolt_rgb2 = '0.1 0 0.8';
+float autocvar_cl_polytrails_crylink_bolt_alpha0 = 0.75;
+float autocvar_cl_polytrails_crylink_bolt_alpha1 = 0.2;
+float autocvar_cl_polytrails_crylink_bolt_alpha2 = 0;
+float autocvar_cl_polytrails_crylink_bolt_thickness0 = 5;
+float autocvar_cl_polytrails_crylink_bolt_thickness1 = 3;
+float autocvar_cl_polytrails_crylink_bolt_thickness2 = 3;
+float autocvar_cl_polytrails_crylink_bolt_lifetime = 0.15;
+float autocvar_cl_polytrails_crylink_bolt_segmentsize = 80;
+float autocvar_cl_polytrails_crylink_bolt_noise = 0;
+string autocvar_cl_polytrails_crylink_bolt_noisefunc = "none";
+
+bool autocvar_cl_polytrails_electro_bolt = true;
+vector autocvar_cl_polytrails_electro_bolt_rgb0 = '0.75 0.75 1';
+vector autocvar_cl_polytrails_electro_bolt_rgb1 = '0.45 0.45 1';
+vector autocvar_cl_polytrails_electro_bolt_rgb2 = '0.1 0.1 0.75';
+float autocvar_cl_polytrails_electro_bolt_alpha0 = 1;
+float autocvar_cl_polytrails_electro_bolt_alpha1 = 0.5;
+float autocvar_cl_polytrails_electro_bolt_alpha2 = 0;
+float autocvar_cl_polytrails_electro_bolt_thickness0 = 5;
+float autocvar_cl_polytrails_electro_bolt_thickness1 = 5;
+float autocvar_cl_polytrails_electro_bolt_thickness2 = 0;
+float autocvar_cl_polytrails_electro_bolt_lifetime = 0.27;
+float autocvar_cl_polytrails_electro_bolt_segmentsize = 10;
+float autocvar_cl_polytrails_electro_bolt_noise = 5;
+string autocvar_cl_polytrails_electro_bolt_noisefunc = "chaotic";
+
+bool autocvar_cl_polytrails_electro_orb = true;
+vector autocvar_cl_polytrails_electro_orb_rgb0 = '0.8 0.8 1';
+vector autocvar_cl_polytrails_electro_orb_rgb1 = '0.5 0.5 1';
+vector autocvar_cl_polytrails_electro_orb_rgb2 = '0.1 0.1 0.7';
+float autocvar_cl_polytrails_electro_orb_alpha0 = 1;
+float autocvar_cl_polytrails_electro_orb_alpha1 = 0.5;
+float autocvar_cl_polytrails_electro_orb_alpha2 = 0;
+float autocvar_cl_polytrails_electro_orb_thickness0 = 15;
+float autocvar_cl_polytrails_electro_orb_thickness1 = 7;
+float autocvar_cl_polytrails_electro_orb_thickness2 = 0;
+float autocvar_cl_polytrails_electro_orb_lifetime = 0.18;
+float autocvar_cl_polytrails_electro_orb_segmentsize = 10;
+float autocvar_cl_polytrails_electro_orb_noise = 10;
+string autocvar_cl_polytrails_electro_orb_noisefunc = "chaotic";
index 8cd277a9b9b40c4d48afcbcf0bb0bcdd7f5c3a30..be6e183a2253f36dc22dbedf9031681b82f58682 100644 (file)
@@ -914,6 +914,7 @@ exec effects-normal.cfg
 exec crosshairs.cfg
 exec gamemodes-client.cfg
 exec notifications.cfg
+exec polytrails.cfg
 
 seta cl_physics "default" "client selected physics set"
 
@@ -951,5 +952,3 @@ set menu_reverted_nonsaved_cvars "" "These cvars are currently marked as saved i
 
 // Avoid perf problems near '0 0 0'; `set` without a description is because only current DP has this engine cvar
 set cl_areagrid_link_SOLID_NOT 0
-
-seta cl_polytrails 1 "enable polygon-based trail effect drawing (looks better but may impact performance)"