Raised This Month: $ Target: $400
 0% 

Changing fall velocity limit that gives damage on the player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 04-02-2009 , 04:17   Re: Changing fall velocity limit that gives damage on the player
Reply With Quote #1

Quote:
Originally Posted by Dores View Post
Create a global var that checks if the player fell. Check his fall velocity in PreThink, and if it's 300(or higher) - assign 1 to the var(or true, whatever).
When he is on the ground, if the var's value is 1/true, then he just fell. Reset the var, and damage the player according to the falling velocity(I don't know what calculation is needed).
Thanks for the suggestion but thought of something else. I will add the velocity I need before a player will touch the ground ;).

Quote:
Originally Posted by ConnorMcLeod View Post
Guess all of those value are hardcoded.
Damn ... so that means that I have to manipulate the fall velocity of the player. Thanks .

Quote:
Originally Posted by arkshine View Post
Try with this player offset : m_flFallVelocity ( 251 )
It just says the fall velocity, it is good to add some values to make them fall better .
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.

Last edited by ot_207; 04-02-2009 at 04:19.
ot_207 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:17.


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