Raised This Month: $51 Target: $400
 12% 

More time or Unlimit [Zombie Panic Source]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ORdli
Member
Join Date: Nov 2021
Old 01-23-2024 , 20:47   More time or Unlimit [Zombie Panic Source]
Reply With Quote #1

I need a plugin that will disable the time limit or increase it to 30, since the round time is 8 minutes, the fact is that all maps including zpo and zps have a time limit of 8 minutes, mp_timelimit does not affect this, I would like remove it time so that the round does not end until all survivors die.
ORdli is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 01-24-2024 , 10:57   Re: More time or Unlimit [Zombie Panic Source]
Reply With Quote #2

I looked, Zombie Panic Source use own plugin system (Angelscript) https://api.zombiepanicsource.com/

I tough it would be easier to change round timer with that.

Part 1

First, you need grant yourself as admin in ZPS admin system. (Not necessary need, you can change AS cvar with ascmd instead)
Open file and you see last section { }, edit that and give steamid.

...zps/data/adminsystem.json
Code:
{
	"admins": [
		// This user has "root" access (super-administrator), the immunity value is
		// therefore ignored.
		//{
		//	"steamid": "STEAM_0:0:00000000",
		//	"immunity": 100,
		//	"flags": "z"
		//},
		// This user has a reserved slot, is recognized as administrator, can kick
		// and ban clients, his immunity value is 50.
		//{
		//	"steamid": "STEAM_1:1:11111111",
		//	"immunity": 50,
		//	"flags": "abcd"
		//},
		// This user is part of the "BasicAdmin" group and will inherit the group's
		// flag(s).
		//{
		//	"steamid": "STEAM_2:2:22222222",
		//	"immunity": 50,
		//	"group": "BasicAdmin"
		//},
		// This user is part of the "BasicAdmin" group but has a different set of
		// flag(s) than what the group defines.
		//{
		//	"steamid": "STEAM_3:3:33333333",
		//	"immunity": 50,
		//	"group": "BasicAdmin",
		//	"flags": "abcd"
		//},
		{
			"steamid": "STEAM_0:1:14163588",
			"immunity": 100,
			"group": "BasicAdmin",
			"flags": "h"
		}
	],
	"groups": {
		"BasicAdmin": {
			"flags": "b"
		}
	}
}

There is AS plugin in zps_freezetime.as.zip file, extract that in your server
AS plugin source code

Code:
└───zps
    │   default_plugins.json.example
    │
    └───data
        └───scripts
            └───plugins
                    FreezeRoundtime.as

Edit bottom of this file in server ...zps/default_plugins.json
Code:
{
	"plugins": [
		//{
		//	"name": "Chat Broadcaster",
		//	"author": "Casei Magnus",
		//	"version": "1.0.0.0",
		//	"script": "chatbroadcaster.as",
		//	"lifetime": "HOTRELOADABLE"
		//},
		//{
		//	"name": "Rock The Vote",
		//	"author": "JonnyBoy0719",
		//	"version": "1.0.0.0",
		//	"script": "rockthevote.as",
		//	"lifetime": "HOTRELOADABLE"
		//},
		//{
		//	"name": "Spray Checker",
		//	"author": "JonnyBoy0719",
		//	"version": "1.0.0.0",
		//	"script": "spraychecker.as",
		//	"lifetime": "HOTRELOADABLE"
		//},
		{
			"script": "FreezeRoundtime.as",
			"lifetime": "HOTRELOADABLE"
		}
	]
}
Then you reboot server, I'm not sure does map change load plugin and admin.
- You see errors in server console if you have typos in script files.


Part 2

Now comes bad part... you can't use AS console variable same way as SourceMod and SRCDS.
- You can't use this cvar from server console or using rcon. You need go play in server and use it from your own game console. Maybe I'm too dummy but I couldn't get it work normal way.


Rant:
*update
There is AS cmd that you can use AS cvar from rcon or config file: ascmd sv_zps_freeze_roundtime 20
- You not need create admin account for that.


To see is AS plugin loaded, use command: as_listplugins
Code:
[Angelscript] 1 plugins are running server side
"FreezeRoundtime.as" ("Freeze Roundtime") v1.0 by "Bacardi" - Lifetime: HOTRELOADABLE
To see plugin commands, use command: as_showcommands
Code:
Available commands:
----------------------
sv_zps_freeze_roundtime >> "-1.000000" ( "Freeze time to given value, time need to be 0.0 or greater" )
1 -- ConVars
----------------------

AS plugin Console Variable is: sv_zps_freeze_roundtime
- Default value is -1. Plugin won't do anything.
- When you set time in seconds ex. 1200 (20 minutes), plugin will freeze roundtime to that.
- After that if you hit back -1, roundtimer will continue. So you can basically change roundtime.
- Round end if you hit 0 seconds



If you want this plugin work all the time when server start, edit FreezeRoundtime.as file.
Change this part
Code:
	@ConVarFreezeRoundtime = ConVar::Create("sv_zps_freeze_roundtime", "1200.0", "Freeze time to given value, time need to be 0.0 or greater", null, true, -1.0f);
THE END
Attached Files
File Type: zip zps_freezetime.as.zip (2.1 KB, 16 views)
__________________
Do not Private Message @me

Last edited by Bacardi; 01-24-2024 at 12:17.
Bacardi is offline
101
Member
Join Date: Nov 2023
Old 01-26-2024 , 13:21   Re: More time or Unlimit [Zombie Panic Source]
Reply With Quote #3

Quote:
Originally Posted by Bacardi View Post
I looked, Zombie Panic Source use own plugin system (Angelscript) https://api.zombiepanicsource.com/

I tough it would be easier to change round timer with that.

Part 1

First, you need grant yourself as admin in ZPS admin system. (Not necessary need, you can change AS cvar with ascmd instead)
Open file and you see last section { }, edit that and give steamid.

...zps/data/adminsystem.json
Code:
{
	"admins": [
		// This user has "root" access (super-administrator), the immunity value is
		// therefore ignored.
		//{
		//	"steamid": "STEAM_0:0:00000000",
		//	"immunity": 100,
		//	"flags": "z"
		//},
		// This user has a reserved slot, is recognized as administrator, can kick
		// and ban clients, his immunity value is 50.
		//{
		//	"steamid": "STEAM_1:1:11111111",
		//	"immunity": 50,
		//	"flags": "abcd"
		//},
		// This user is part of the "BasicAdmin" group and will inherit the group's
		// flag(s).
		//{
		//	"steamid": "STEAM_2:2:22222222",
		//	"immunity": 50,
		//	"group": "BasicAdmin"
		//},
		// This user is part of the "BasicAdmin" group but has a different set of
		// flag(s) than what the group defines.
		//{
		//	"steamid": "STEAM_3:3:33333333",
		//	"immunity": 50,
		//	"group": "BasicAdmin",
		//	"flags": "abcd"
		//},
		{
			"steamid": "STEAM_0:1:14163588",
			"immunity": 100,
			"group": "BasicAdmin",
			"flags": "h"
		}
	],
	"groups": {
		"BasicAdmin": {
			"flags": "b"
		}
	}
}

There is AS plugin in zps_freezetime.as.zip file, extract that in your server
AS plugin source code

Code:
└───zps
    │   default_plugins.json.example
    │
    └───data
        └───scripts
            └───plugins
                    FreezeRoundtime.as

Edit bottom of this file in server ...zps/default_plugins.json
Code:
{
	"plugins": [
		//{
		//	"name": "Chat Broadcaster",
		//	"author": "Casei Magnus",
		//	"version": "1.0.0.0",
		//	"script": "chatbroadcaster.as",
		//	"lifetime": "HOTRELOADABLE"
		//},
		//{
		//	"name": "Rock The Vote",
		//	"author": "JonnyBoy0719",
		//	"version": "1.0.0.0",
		//	"script": "rockthevote.as",
		//	"lifetime": "HOTRELOADABLE"
		//},
		//{
		//	"name": "Spray Checker",
		//	"author": "JonnyBoy0719",
		//	"version": "1.0.0.0",
		//	"script": "spraychecker.as",
		//	"lifetime": "HOTRELOADABLE"
		//},
		{
			"script": "FreezeRoundtime.as",
			"lifetime": "HOTRELOADABLE"
		}
	]
}
Then you reboot server, I'm not sure does map change load plugin and admin.
- You see errors in server console if you have typos in script files.


Part 2

Now comes bad part... you can't use AS console variable same way as SourceMod and SRCDS.
- You can't use this cvar from server console or using rcon. You need go play in server and use it from your own game console. Maybe I'm too dummy but I couldn't get it work normal way.


Rant:
*update
There is AS cmd that you can use AS cvar from rcon or config file: ascmd sv_zps_freeze_roundtime 20
- You not need create admin account for that.


To see is AS plugin loaded, use command: as_listplugins
Code:
[Angelscript] 1 plugins are running server side
"FreezeRoundtime.as" ("Freeze Roundtime") v1.0 by "Bacardi" - Lifetime: HOTRELOADABLE
To see plugin commands, use command: as_showcommands
Code:
Available commands:
----------------------
sv_zps_freeze_roundtime >> "-1.000000" ( "Freeze time to given value, time need to be 0.0 or greater" )
1 -- ConVars
----------------------

AS plugin Console Variable is: sv_zps_freeze_roundtime
- Default value is -1. Plugin won't do anything.
- When you set time in seconds ex. 1200 (20 minutes), plugin will freeze roundtime to that.
- After that if you hit back -1, roundtimer will continue. So you can basically change roundtime.
- Round end if you hit 0 seconds



If you want this plugin work all the time when server start, edit FreezeRoundtime.as file.
Change this part
Code:
	@ConVarFreezeRoundtime = ConVar::Create("sv_zps_freeze_roundtime", "1200.0", "Freeze time to given value, time need to be 0.0 or greater", null, true, -1.0f);
THE END
Valve has to sell it's Products , that's a shame when they design a remote cvar mp_timelimit that doesn't work .
+ Valve Games are getting worse with full of bugs
They are waiting for reports and community response without giving a shit for a perfect logical design from the beginning .

Last edited by 101; 01-26-2024 at 14:55.
101 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 01-26-2024 , 15:41   Re: More time or Unlimit [Zombie Panic Source]
Reply With Quote #4

Quote:
Originally Posted by 101 View Post
Valve has to sell it's Products , that's a shame when they design a remote cvar mp_timelimit that doesn't work .
+ Valve Games are getting worse with full of bugs
They are waiting for reports and community response without giving a shit for a perfect logical design from the beginning .
No no no no... Valve have made Source Engine.

But ZPS game developer is: Zombie Panic! Team

Don't blame Valve
Bacardi is offline
ORdli
Member
Join Date: Nov 2021
Old 01-29-2024 , 14:43   Re: More time or Unlimit [Zombie Panic Source]
Reply With Quote #5

thanks!!!
ORdli is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode