new-thegrex-source / cqvm

not my repo, i imported this from google code
Other
0 stars 0 forks source link

Jetpack fuel #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Description:
Slacker, get your jetpack fuel over here plox.

It would need a few cvars, if you already have them, all the better:
g_jetpackFuel
 * 0 disables the feature
 * int sets the amount of fuel
g_jetpackConsume
 * Consumption rate per second of fuel in flight
g_jetpackRegen
 * Regeneration rate of jetpack while not in flight.

Original issue reported on code.google.com by Paradox460 on 8 Jun 2009 at 7:04

GoogleCodeExporter commented 9 years ago

Original comment by Paradox460 on 10 Jun 2009 at 2:00

GoogleCodeExporter commented 9 years ago
here is 2 patches one with the old tremulous.h code and one moved to cvars
i changed the cvars a little
  mod_ instead of g_ prefix
  made it give full fuel when you spawn
  cleaned up code a little

the tremulous.h one is an exact copy of my old one.
its a starting point try it out.

oh and i tried to hack the stamina a little to show the fuel tbh it didn't work 
out
right. if someone else wants to have a go at that feel free.

Original comment by SlackerL...@gmail.com on 10 Jun 2009 at 5:54

Attachments:

GoogleCodeExporter commented 9 years ago
So is this ready to go?

If so, mark it as Complete.

Also, you can commit if your sure it works

Original comment by Paradox460 on 10 Jun 2009 at 2:45

GoogleCodeExporter commented 9 years ago

Original comment by Paradox460 on 10 Jun 2009 at 11:06

GoogleCodeExporter commented 9 years ago
Done in r14

Original comment by SlackerL...@gmail.com on 12 Jun 2009 at 1:22