Raised This Month: $ Target: $400
 0% 

Survivor Sprinting


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Zverina
Senior Member
Join Date: Aug 2009
Location: California, USA
Old 08-13-2009 , 21:42   Survivor Sprinting
Reply With Quote #1

I was wondering if there was a way to allow survivors to sprint, run somewhat faster, for a certain amount of time, like in some games, you sprint for a while, your sprint runs out, you gotta wait another 10-20 seconds for it to completely recharge again. Any takers?
Zverina is offline
olj
Veteran Member
Join Date: Jun 2009
Old 08-14-2009 , 03:01   Re: Survivor Sprinting
Reply With Quote #2

Good idea too. But i dont know how to increase someone's speed. Changing global variables wont do the trick (we want individual "sprint function" for each survivor).
__________________
olj is offline
DieTeetasse
Senior Member
Join Date: Jul 2009
Old 08-14-2009 , 08:27   Re: Survivor Sprinting
Reply With Quote #3

Maybe it is possible, if we change the velocity of the player entity like this (code from AtomicStryker):
Code:
decl Float:vec[3];
GetEntPropVector(client, Prop_Data, "m_vecVelocity", vec);
DieTeetasse is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 08-14-2009 , 16:20   Re: Survivor Sprinting
Reply With Quote #4

Just set the walk speed higher by cvar? Then shift doesnt make you walk but sprint xD
AtomicStryker is offline
olj
Veteran Member
Join Date: Jun 2009
Old 08-14-2009 , 16:53   Re: Survivor Sprinting
Reply With Quote #5

Nice approach. What is keyword for shift key? Can it be hooked in 1.3? So we can do it limited.
__________________
olj is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 08-14-2009 , 17:17   Re: Survivor Sprinting
Reply With Quote #6

IN_WALK of course
AtomicStryker is offline
olj
Veteran Member
Join Date: Jun 2009
Old 08-14-2009 , 20:07   Re: Survivor Sprinting
Reply With Quote #7

Nice, thanx.
__________________
olj is offline
Zverina
Senior Member
Join Date: Aug 2009
Location: California, USA
Old 09-05-2009 , 15:17   Re: Survivor Sprinting
Reply With Quote #8

this gonna be done anytime soon? xD
Zverina is offline
olj
Veteran Member
Join Date: Jun 2009
Old 09-06-2009 , 08:33   Re: Survivor Sprinting
Reply With Quote #9

Well, need to think of proper way how to restrict sprint time, wont be too hard i think maybe someday ill look into it, if noone else will.
__________________
olj is offline
Dragonshadow
BANNED
Join Date: Jun 2008
Old 09-06-2009 , 19:24   Re: Survivor Sprinting
Reply With Quote #10

I'm actually working on this LOL
Dragonshadow 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 11:17.


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