Raised This Month: $59 Target: $400
 14% 

Real Speed


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
eduardolucioac
Member
Join Date: Jan 2016
Old 10-09-2019 , 12:30   Real Speed
Reply With Quote #1

INTRODUCTION:
This is my first plugin. It is based on this Oxygen Bar plugin.

DESCRIPTION:
With this plugin we can set different speeds for the player (including bots) on the ground, water and stairs.

CVARS:
rs_water_speed 120 // 0~280, 120 default
rs_ladder_speed 70 // 0~280, 70 default

COMMUNITY:
1 - I would like you to comment and suggest improvements to this plugin, especially in performance;
2 - This plugin causes a slight "delay" when the user is in the water and emerges. Suggestions on how to correct that "delay" are welcome.

Thanks!
Attached Files
File Type: sma Get Plugin or Get Source (real_speed.sma - 22 views - 2.6 KB)

Last edited by eduardolucioac; 10-09-2019 at 15:22.
eduardolucioac is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 10-09-2019 , 14:54   Re: Real Speed
Reply With Quote #2

You are not allowed to post .amxx files. Remove it!
__________________

Mordekay is offline
eduardolucioac
Member
Join Date: Jan 2016
Old 10-09-2019 , 15:22   Re: Real Speed
Reply With Quote #3

Quote:
Originally Posted by Mordekay View Post
You are not allowed to post .amxx files. Remove it!
Done!
eduardolucioac is offline
wilianmaique
Member
Join Date: Nov 2016
Old 10-09-2019 , 18:54   Re: Real Speed
Reply With Quote #4

Wouldn't it be better to use: Ham_CS_Player_ResetMaxSpeed ?
__________________
Everything in life is learned.
wilianmaique is offline
Send a message via Skype™ to wilianmaique
DJEarthQuake
Senior Member
Join Date: Jan 2014
Location: Midwest
Old 10-09-2019 , 21:56   Re: Real Speed
Reply With Quote #5

Quote:
Originally Posted by eduardolucioac View Post
INTRODUCTION:
suggest improvements
Vehicle speed control! I have a accelerometer for ejector seat.

Quote:
1 - I would like you to comment and suggest improvements to this plugin, especially in performance;
2 - This plugin causes a slight "delay" when the user is in the water and emerges. Suggestions on how to correct that "delay" are welcome.
Did you base this off the original bugged code or the version where I cleaned it up?
__________________
"It's not the actual programming that's interesting. But it's what you can accomplish with the end results that are important." -Dennis Ritchie
"Mathematics, rightly viewed, possesses not only truth, but supreme beauty — a beauty cold and austere, like that of sculpture..." -Bertrand Russell
DJEarthQuake is offline
LearninG
Senior Member
Join Date: Apr 2019
Location: Iran
Old 10-10-2019 , 03:36   Re: Real Speed
Reply With Quote #6

save a tempid so you do not re-index
Code:
static i for(i = 1; i < MAXPLAYERS; i++) {             if(g_PlayerAlive[i]) {              // other codes...
----------->
Code:
static i , tempid         for(i = 1; i < MAXPLAYERS; i++) {             tempid = i             if(g_PlayerAlive[tempid]) {             // other codes...
LearninG is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 10-10-2019 , 16:42   Re: Real Speed
Reply With Quote #7

First of all, he shouldn't use this kind of loop, better use get_players.
__________________
• BattleRoyale Mod
• Public PugMod
• Furien Mod

-

Currently working on Thanos vs. Avengers: 15%
EFFx is offline
Send a message via Skype™ to EFFx
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 17:01.


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