Raised This Month: $ Target: $400
 0% 

Can't increase player speed


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
esenrik
Senior Member
Join Date: Jul 2010
Old 05-25-2018 , 18:52   Re: Can't increase player speed
Reply With Quote #3

Quote:
Originally Posted by Natsheh View Post
Show full code.
Code:
// Set proper maxspeed for player
set_player_maxspeed(id)
{
	// If frozen, prevent from moving
	if (g_frozen[id])
	{
		set_pev(id, pev_maxspeed, 1.0)
	}
	// Otherwise, set maxspeed directly
	else
	{
		if (g_zombie[id])
		{
			if (g_nemesis[id]) {
			set_pev(id, pev_maxspeed, get_pcvar_float(cvar_nemspd))
			}
			else {
			set_pev(id, pev_maxspeed, g_zombie_spd[id])
			}
			
			if (g_predator[id]) {
			set_pev(id, pev_maxspeed, get_pcvar_float(cvar_predspd))
			}
			else {
			set_pev(id, pev_maxspeed, g_zombie_spd[id])
			}			
		}
		else
		{
			if (g_survivor[id])
			set_pev(id, pev_maxspeed, get_pcvar_float(cvar_survspd))
			else if (get_pcvar_float(cvar_humanspd) > 0.0)
			set_pev(id, pev_maxspeed, get_pcvar_float(cvar_humanspd))
		}
	}
}
PD: cvar_predspd = 400
esenrik is offline
 



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 04:32.


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