home
files
forum
docs
wiki
faq
Cube & Cube 2 FORUM
player speed modifyer
by phoenixsux on 09/07/2007 05:15, 0 messages, last message: 09/07/2007 05:15, 789 views, last view: 04/24/2024 21:11
I'm trying to find a way to bind a player's max speed to that player's health. EG: if they have 10% health then they only have 10% of their maxspeed. i'll confess i'm still learning C++. I can't figure out how to do it. i've made a health variable for physent and when a player takes damage i tell it to also deduct from that helth value. then i try ..maxspeed -> ..health (respectively for pl, cl, ect...) and it's not working. I must be missing something. How can i accomplish it so that speed is subject to health? thank you.
Board Index
Unvalidated accounts can only reply to the 'Permanent Threads' section!
create account
recover account
content by Aardappel & eihrul © 2001-2024 website by SleepwalkR © 2001-2024 53865103 visitors requested 71640249 pages page created in 0.010 seconds using 10 queries hosted by Boost Digital