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

[EXTENSION] [CSS] CSS Speed Mod


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sammy-ROCK!
Senior Member
Join Date: Jun 2008
Location: Near Mrs.Lag
Old 10-19-2010 , 15:53   [EXTENSION] [CSS] CSS Speed Mod
Reply With Quote #1

This extension allows scripters to edit player's max speed in CSS smoothly. It uses a detour on the function CCSPlayer::GetPlayerMaxSpeed.

Sample that sets maxspeed to 600:
Code:
#include <cssspeedmod>
public GetPlayerMaxSpeed(client, &Float:MaxSpeed)
{
    MaxSpeed = 600.0;
}
Notes:
MaxSpeed's initial value is what the real function returned.
This was not yet tested and linux version is not yet compiled.

Include file
GameData file
Windows Extension file

Source Code
Attached Files
File Type: txt cssspeedmod.txt (323 Bytes, 1058 views)
File Type: inc cssspeedmod.inc (394 Bytes, 1213 views)
File Type: dll cssspeedmod.ext.dll (79.5 KB, 1177 views)
File Type: zip CCSSpeedMod.zip (2.20 MB, 1139 views)

Last edited by Sammy-ROCK!; 10-19-2010 at 20:08.
Sammy-ROCK! is offline
spar13
SourceMod Donor
Join Date: May 2010
Old 10-19-2010 , 19:09   Re: [EXTENSION] [CSS] CSS Speed Mod
Reply With Quote #2

Attach a zip instead of the 7z archive, people are unable to download attached 7zip archives from the site.

Does this have the same issue as YouzAMenaces extension where the speed change is not fluid?
http://forums.alliedmods.net/showpos...7&postcount=11
spar13 is offline
Sammy-ROCK!
Senior Member
Join Date: Jun 2008
Location: Near Mrs.Lag
Old 10-19-2010 , 20:09   Re: [EXTENSION] [CSS] CSS Speed Mod
Reply With Quote #3

Done. Thanks for the warning I didn't knew 7z had issues 0.o'

I don't think. I'm detouring a virtual function and returning a different value. So the server actually thinks that this new value is the right one.
Sammy-ROCK! is offline
psychonic

BAFFLED
Join Date: May 2008
Old 10-19-2010 , 20:21   Re: [EXTENSION] [CSS] CSS Speed Mod
Reply With Quote #4

Quote:
Originally Posted by Sammy-ROCK! View Post
I don't think. I'm detouring a virtual function and returning a different value. So the server actually thinks that this new value is the right one.
According to this recent post, part of speed is now clientside, which is what causes the issue even when detouring that function, https://forums.alliedmods.net/showpo...&postcount=886
psychonic is offline
Sammy-ROCK!
Senior Member
Join Date: Jun 2008
Location: Near Mrs.Lag
Old 10-19-2010 , 21:00   Re: [EXTENSION] [CSS] CSS Speed Mod
Reply With Quote #5

Now if the prediction actually changes the moving speed or it simply shows a random value at cl_showpos is harder to say 0.o'
Sammy-ROCK! is offline
javalia
Senior Member
Join Date: May 2009
Location: korea, republic of
Old 11-15-2010 , 08:29   Re: [EXTENSION] [CSS] CSS Speed Mod
Reply With Quote #6

somebody should compile it for linuz from this is wonderful mod..
__________________
javalia is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 11-15-2010 , 11:08   Re: [EXTENSION] [CSS] CSS Speed Mod
Reply With Quote #7

If you use Wazz's snippet with my CCSWeaponInfo and change m_fMaxPlayerSpeed you get fluid max speed.
You may will want to do what Wazz says on the first post to change it per-entity.
Seta00 is offline
javalia
Senior Member
Join Date: May 2009
Location: korea, republic of
Old 11-15-2010 , 22:15   Re: [EXTENSION] [CSS] CSS Speed Mod
Reply With Quote #8

linux bin, compiled by our friendly psychonic
Attached Files
File Type: so cssspeedmod.ext.so (25.4 KB, 571 views)
__________________
javalia is offline
bandit
Senior Member
Join Date: Jul 2009
Old 12-30-2010 , 11:27   Re: [EXTENSION] [CSS] CSS Speed Mod
Reply With Quote #9

Hello,
I am a Noob, and I need help
I am not certain where to place all these folders
Do I place the whole CCSSpeedMod folder in the main sourcemod folder
or
do I open CCSSpeedMod and place the folders inside in sourcemod main folder?
Can you please direct me?
btw...I do not have a Linux Server

Thanks

Last edited by bandit; 01-13-2011 at 08:20. Reason: forgot something important
bandit is offline
Send a message via MSN to bandit
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 12-30-2010 , 14:50   Re: [EXTENSION] [CSS] CSS Speed Mod
Reply With Quote #10

Maxspeed was uncapped in CSS Beta, I don't think this extension is going to be needed any more.
bl4nk 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 15:20.


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