Jump to content

Home

Player Speed


Astelraid

Recommended Posts

is there a specific location in the file where i could write the code? for when player has like 50 health then the player movement speed will be slower also.

 

In the file I was telling you about, look for these lines, you can do a search for just the first line (ctf+f):

 

(ps->fd.forcePowersActive & (1 << FP_RAGE))

{

ps->speed *= 1.3;

}

 

Add an if statement above or below that like so:

 

if(ps->stats[sTAT_HEALTH] <= ps->stats[sTAT_MAX_HEALTH] * .5)

ps->speed *= .6;//or whatever else you would like

Link to comment
Share on other sites

  • 4 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...