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

Geschwindigkeit der Spieler


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
321
Member
Join Date: Jun 2010
Old 06-10-2010 , 15:29   Geschwindigkeit der Spieler
Reply With Quote #1

Halle,
Ich habe eine Bitte:
Könnt ihr die Geschwindigkeit der Spieler in der Stabilen Version von Plugin von der Version der Entwickler übernehmen, sodass sich nur die Geschwindigkeit ändert und alles andere bleibt?
Danke im Vorraus

Last edited by 321; 06-10-2010 at 15:39.
321 is offline
rhelgeby
Veteran Member
Join Date: Oct 2008
Location: 0x4E6F72776179
Old 06-10-2010 , 16:37   Re: Geschwindigkeit der Spieler
Reply With Quote #2

English translation by google:
Quote:
Originally Posted by 321 View Post
Hall,
I have a request:
Can you take the speed of the players in a stable version of the version of the plugin developers, so that only changes the speed and everything else remains?
Thanks in advance
The new speed method will not be ported to the stable branch because of some unsolved problems. The maximum speed with this method is limited by some client cvars we might not be able to control.

More details about this problem: http://code.google.com/p/zombiereloa.../detail?id=125
__________________
Richard Helgeby

Zombie:Reloaded | PawnUnit | Object Library
(Please don't send private messages for support, they will be ignored. Use the forum.)
rhelgeby is offline
Send a message via MSN to rhelgeby
blodia
Veteran Member
Join Date: Sep 2009
Location: UK
Old 06-10-2010 , 18:22   Re: Geschwindigkeit der Spieler
Reply With Quote #3

you can solve that problem easily

PHP Code:
public Action:OnPlayerRunCmd(client, &buttons, &impulseFloat:vel[3], Float:angles[3], &weapon)
{
    if (
IsPlayerAlive(client))
    {
        if (
vel[0] < 0.0)
        {
            
vel[0] = -1500.0;
        }
        else if (
vel[0] > 0.0)
        {
            
vel[0] = 1500.0;
        }
        
        if (
vel[1] < 0.0)
        {
            
vel[1] = -1500.0;
        }
        else if (
vel[1] > 0.0)
        {
            
vel[1] = 1500.0;
        }
    }
    
    return 
Plugin_Continue;

this is a snippet from my weapon mod, "vel" is the raw speed the client is moving at which is the speed set by those client speed cvars. i changed them to 1500/-1500, for your needs you could try sv_maxspeed/-sv_maxspeed. i'm assuming you're using sdkhooks to change player speeds like i did.
blodia is offline
rhelgeby
Veteran Member
Join Date: Oct 2008
Location: 0x4E6F72776179
Old 06-10-2010 , 19:48   Re: Geschwindigkeit der Spieler
Reply With Quote #4

Won't that eliminate acceleration and slow down?
__________________
Richard Helgeby

Zombie:Reloaded | PawnUnit | Object Library
(Please don't send private messages for support, they will be ignored. Use the forum.)
rhelgeby is offline
Send a message via MSN to rhelgeby
blodia
Veteran Member
Join Date: Sep 2009
Location: UK
Old 06-11-2010 , 08:39   Re: Geschwindigkeit der Spieler
Reply With Quote #5

nope this is editing the speed before the server modifies it. only drawback which shouldn't be a problem for most players is that cl_showpos 1 will show incorrect speeds for anything over 400 as its predicted.
blodia is offline
Greyscale
SourceMod Plugin Approver
Join Date: Dec 2007
Location: strYoMommasHouse[you];
Old 07-03-2010 , 06:19   Re: Geschwindigkeit der Spieler
Reply With Quote #6

Thanks a lot blodia, it works perfectly.
__________________
Greyscale 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 02:35.


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