Skip to content

Commit d8a3ba7

Browse files
author
newby
committed
Enable correction of grenade prime time by player latency by default.
1 parent 8303f93 commit d8a3ba7

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

ssqc/antilag.qc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ void AL_ProjectProjectile (entity projectile) {
2929
}
3030

3131
float AL_GrenadeOffset() {
32-
if (!CF_GetSetting("pg", "project_grenades", "off"))
32+
if (!project_grenades)
3333
return 0;
3434

3535
local float offset = infokeyf(self, INFOKEY_P_PING) / 1000;

ssqc/client.qc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,9 +622,12 @@ void () DecodeLevelParms = {
622622
// project projectile weapons by player ping
623623
project_weapons = CF_GetSetting("pw", "project_weapons", "off");
624624

625-
// max projection latency (default 100ms)
625+
// max projectile projection latency (default 100ms)
626626
project_weapons_max_latency = CF_GetSetting("pwml", "project_weapons_max_latency", ftos(0.1));
627627

628+
// Correct grenade prime timing by player ping.
629+
project_grenades = CF_GetSetting("pg", "project_grenades", "on");
630+
628631
// delay respawning by this many seconds [0]
629632
Role_None.respawn_delay_time = CF_GetSetting("rd", "respawn_delay", "0");
630633
if (Role_None.respawn_delay_time) {
@@ -1019,6 +1022,7 @@ void () DecodeLevelParms = {
10191022
medicaura = FALSE;
10201023
medicnocuss = FALSE;
10211024
project_weapons = FALSE;
1025+
project_grenades = TRUE;
10221026
distance_based_cuss_duration = FALSE;
10231027
pyro_type = 1;
10241028
drop_grenades = FALSE;

ssqc/qw.qc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,7 @@ float max_armor_hwguy;
599599

600600
float project_weapons;
601601
float project_weapons_max_latency;
602+
float project_grenades;
602603

603604
float ng_velocity;
604605
float ng_damage;

0 commit comments

Comments
 (0)