Skip to content

Add Pause zone & shavit_zones_teleporttostart & reset players when below 100 hp#1261

Closed
xhaooy wants to merge 12 commits intoshavitush:masterfrom
xhaooy:master
Closed

Add Pause zone & shavit_zones_teleporttostart & reset players when below 100 hp#1261
xhaooy wants to merge 12 commits intoshavitush:masterfrom
xhaooy:master

Conversation

@xhaooy
Copy link
Contributor

@xhaooy xhaooy commented Aug 28, 2025

Add Pause zone and new convar to spawn player inside start zone and create new function to handle that (because i does same thing as shavit_zones_teleporttostart).
Reset players hp when below 100 hp

xhaooy added 7 commits August 28, 2025 02:24
Add new convar to spawn player inside start zone and create new function to handle that (because i does same thing as shavit_zones_teleporttostart).
Add Pause zone to cfg
Add Pause zone to translations file
Add Pause zone to inc
Adjust size of array
Add Pause zone functionality
Fix for double comma
@xhaooy xhaooy changed the title Add new convar to spawn player inside start zone Add Pause zone and new convar to spawn player inside start zone Aug 28, 2025
xhaooy added 2 commits August 28, 2025 11:35
Let player move while inside Pause zone
Players time won't count after finishing the map. Hopefully fixes issue with late loading. 

do not risk overwriting the player's data if their PB isn't loaded to cache yet in Shavit_OnFinish
@xhaooy xhaooy changed the title Add Pause zone and new convar to spawn player inside start zone Add Pause zone and few adjustments and fix Sep 19, 2025
Reset players hp when needed
@xhaooy xhaooy changed the title Add Pause zone and few adjustments and fix Add Pause zone and few adjustments Sep 26, 2025
@rtldg
Copy link
Collaborator

rtldg commented Oct 8, 2025

We have shavit_misc_startonspawn in shavit-misc.sp. Is shavit_zones_teleporttostart_onspawn needed?

@rtldg
Copy link
Collaborator

rtldg commented Oct 8, 2025

What are you using pause zones for? I pretty much agree with 2017 shavit in #422 that we don't want them in the timer.

@xhaooy
Copy link
Contributor Author

xhaooy commented Oct 9, 2025

shavit_zones_teleporttostart_onspawn

because this doesn't work if you have !r disabled.

What are you using pause zones for? I pretty much agree with 2017 shavit in #422 that we don't want them in the timer.

For the same reason as this person, shame it won't be added. (sorry i didn't see this)

@rtldg rtldg changed the title Add Pause zone and few adjustments Add Pause zone & shavit_zones_teleporttostart & reset players when below 100 hp Dec 24, 2025
@rtldg
Copy link
Collaborator

rtldg commented Dec 24, 2025

shavit_zones_teleporttostart_onspawn

because this doesn't work if you have !r disabled.

Disabling !r via shavit_core_restart 0 should only affect the commands, not the actual restarting functionality. Do correct me if I'm wrong and/or missing something though.

I'm a little worried (without testing) that the default of 1 for shavit_zones_teleporttostart_onspawn's current implementation would clobber save-states (by restarting) (and you can see how shavit-misc avoids that).

Also the convar name is a little too similar to shavit_misc_startonspawn imo, which itself wasn't that good of a name.

I guess the tldr is:

  • I'll continue gate-keeping pause-zones.
  • The HP thing was edited & merged 21a7b58
  • I don't think bhoptimer needs shavit_zones_teleporttostart_onspawn, and that should be very easy to just copy-and-paste into a standalone plugin.

@rtldg rtldg closed this Dec 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants