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

Sprint v1.4


Post New Thread Reply   
 
Thread Tools Display Modes
Minez
Junior Member
Join Date: Aug 2010
Old 08-11-2010 , 14:02   Re: Sprint v1.4
Reply With Quote #51

Could it be because I am using it on my local server, because I want to test it out before installing it on my internet server?

Also, I want to make this so only admins with a certain flag can use it

All I have to do is replace RegConsoleCmd with RegAdminCmd ?

Is this correct?

RegAdminCmd("sprint", Sprint, ADMFLAG_CUSTOM1, "Toggles sprinting mode for clients");

Last edited by Minez; 08-11-2010 at 14:16.
Minez is offline
Greyscale
SourceMod Plugin Approver
Join Date: Dec 2007
Location: strYoMommasHouse[you];
Old 08-11-2010 , 15:04   Re: Sprint v1.4
Reply With Quote #52

That should work, yes.

You installed the plugin on your client?
__________________
Greyscale is offline
Minez
Junior Member
Join Date: Aug 2010
Old 08-11-2010 , 15:30   Re: Sprint v1.4
Reply With Quote #53

Well, now it's installed in my server and it works 50%, I modified it so it's for admin only, that work 100%. When I installed it, it had initial config, and it worked just fine, but I tried to reduce the time some1 could run and the speed, and now the plugin seems not to respond. But it does respond because when non-admins type "sprint" in console they get the "You have no access.." message. And when I type rcon sm plugins list, I see the plugin with no <Failed> or anything. So maybe it's juste the configs that are wrong, look at these :
// Multiplier of player's speed while sprinting
sprint_speed "1.5"

// Control how fast the player accelerates into full speed sprint
sprint_accel_factor "0.5"

// When a player joins a message will inform them of the mod, this controls how many rounds to wait before showing it again, 0 will stop announcements
sprint_announce "0"

// Control how fast the player decelerates to normal speed
sprint_decel_factor "0.3"

// Control how fast the player loses stamina
sprint_depletion_factor "0.25"

// Control how fast the player replenishes stamina while idle
sprint_idle_replenish_factor "0.15"

// Control how fast the player replenishes stamina while moving
sprint_replenish_factor "0.1"
Minez is offline
Greyscale
SourceMod Plugin Approver
Join Date: Dec 2007
Location: strYoMommasHouse[you];
Old 08-11-2010 , 15:40   Re: Sprint v1.4
Reply With Quote #54

What did you change from the original configs?
__________________
Greyscale is offline
Minez
Junior Member
Join Date: Aug 2010
Old 08-11-2010 , 15:42   Re: Sprint v1.4
Reply With Quote #55

well that is the original
// Multiplier of player's speed while sprinting
sprint_speed "1.5"

// Control how fast the player accelerates into full speed sprint
sprint_accel_factor "0.1"

// When a player joins a message will inform them of the mod, this controls how many rounds to wait before showing it again, 0 will stop announcements
sprint_announce "3"

// Control how fast the player decelerates to normal speed
sprint_decel_factor "0.2"

// Control how fast the player loses stamina
sprint_depletion_factor "0.15"

// Control how fast the player replenishes stamina while idle
sprint_idle_replenish_factor "0.15"

// Control how fast the player replenishes stamina while moving
sprint_replenish_factor "0.1"
Minez is offline
Greyscale
SourceMod Plugin Approver
Join Date: Dec 2007
Location: strYoMommasHouse[you];
Old 08-11-2010 , 16:15   Re: Sprint v1.4
Reply With Quote #56

Use the original configs and change sprint_speed to something like 1.3 to slow the sprint speed. And increase sprint_depletion_factor to like 0.3 or 0.35. I made this plugin years ago, I forgot how it works internally, but changing the accel cvar may have broken it. You shouldn't really need to touch that anyway.
__________________
Greyscale is offline
Minez
Junior Member
Join Date: Aug 2010
Old 08-11-2010 , 17:13   Re: Sprint v1.4
Reply With Quote #57

Alright, thank you very much
Minez is offline
Minez
Junior Member
Join Date: Aug 2010
Old 08-11-2010 , 21:06   Re: Sprint v1.4
Reply With Quote #58

An other thing : The plugin stop working after 3-4 maps change. And the only way to start it again is a server restart or a re-install of the plugin.
Minez is offline
cssbr1
Junior Member
Join Date: Jul 2023
Old 12-08-2023 , 02:35   Re: Sprint v1.4
Reply With Quote #59

Can you give us noobs an example of what you mean by "bind a key to sprint"
cssbr1 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 20:50.


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