Raised This Month: $30 Target: $400
 7% 

Solved [L4D2] How to set the respawn time of a single player zombie


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sorallll
Senior Member
Join Date: Oct 2018
Old 11-20-2022 , 23:24   [L4D2] How to set the respawn time of a single player zombie
Reply With Quote #1

PHP Code:
CTimer_Start(L4D2Direct_GetSpawnTimer(client), 60.0); 
I tried setting it like this, it doesn't seem to work

Last edited by sorallll; 11-28-2022 at 13:46.
sorallll is offline
sorallll
Senior Member
Join Date: Oct 2018
Old 11-22-2022 , 09:18   Re: [L4D2] How to set the respawn time of a single player zombie
Reply With Quote #2

PHP Code:
SetEntPropFloat(L4D_GetResourceEntity(), Prop_Send"m_flBecomeGhostAt"GetGameTime() + 60.0client); 
I tried this method, but I can only change the display countdown but not the actual respawn time
sorallll is offline
alasfourom
Senior Member
Join Date: Feb 2022
Location: Saudi Arabia
Old 11-22-2022 , 11:49   Re: [L4D2] How to set the respawn time of a single player zombie
Reply With Quote #3

Are you referring to special infected? if so, have u tried missing with these cvars?

PHP Code:
sm_cvar z_ghost_delay_max "30"
sm_cvar z_ghost_delay_min "20"
sm_cvar z_ghost_delay_minspawn "3" 
__________________
alasfourom is offline
sorallll
Senior Member
Join Date: Oct 2018
Old 11-22-2022 , 12:19   Re: [L4D2] How to set the respawn time of a single player zombie
Reply With Quote #4

Quote:
Originally Posted by alasfourom View Post
Are you referring to special infected? if so, have u tried missing with these cvars?

PHP Code:
sm_cvar z_ghost_delay_max "30"
sm_cvar z_ghost_delay_min "20"
sm_cvar z_ghost_delay_minspawn "3" 
These cvars are used to adjust all special infected, I want to set them individually for a certain player
sorallll is offline
sorallll
Senior Member
Join Date: Oct 2018
Old 11-25-2022 , 14:25   Re: [L4D2] How to set the respawn time of a single player zombie
Reply With Quote #5

After countless attempts, finally found a way
Attached Files
File Type: sp Get Plugin or Get Source (pz_spawn_time.sp - 45 views - 2.3 KB)
File Type: txt pz_spawn_time.txt (1.3 KB, 41 views)

Last edited by sorallll; 11-26-2022 at 14:52.
sorallll is offline
ZBzibing
Senior Member
Join Date: Dec 2012
Old 11-30-2022 , 05:33   Re: [L4D2] How to set the respawn time of a single player zombie
Reply With Quote #6

Is the effect the same as Z_SPAWN MOB?
__________________
My English needs translation
Functional tests are all from L4D1, and are only keen to solve and fix various bugs of L4D1:
ZBzibing is offline
Reply


Thread Tools
Display Modes

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 22:45.


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