Is there anyway for a health pickup to act as a % instead of a constant?
Example:
I have 9 classes in my mod, each class with diferent HP, can i make a pickup that restores 50% of the HP? so for a class that haves 125 maxHP it restores 62.5HP and for a class that haves 200 maxHP it restores 100HP?
Health pickups
RE: Health pickups
Something like:
Code: Select all
Health Player.MaxHealth / 2<agaures> I'm guessing you haven't played many doom mods before huh? :p
<Zuplin> i have played master of puppets zombies doom center and a couple more
<agaures> so not many
<Zuplin> i thought that was everything
<Zuplin> i have played master of puppets zombies doom center and a couple more
<agaures> so not many
<Zuplin> i thought that was everything
-
Ijon Tichy
- Frequent Poster Miles card holder
- Posts: 901
- Joined: Mon Jun 04, 2012 5:07 am
RE: Health pickups
health only accepts a numerical value
I hope you like acs, because you'll need it for this
also is this perchance a tf2 mod
edit: I figured him out and now he won't return
I hope you like acs, because you'll need it for this
also is this perchance a tf2 mod
edit: I figured him out and now he won't return
Last edited by Ijon Tichy on Wed Dec 25, 2013 6:16 pm, edited 1 time in total.
RE: Health pickups
Hmm, quite clever are you, yeah, i wanna do sth like a mix between TF2 and a modern FPS (with Aim down scope and that stuff)Ijon Tichy wrote: health only accepts a numerical value
I hope you like acs, because you'll need it for this
also is this perchance a tf2 mod
edit: I figured him out and now he won't return
RE: Health pickups
If you know the percentage each class will obtain from the pickup (if you know that the scout will get x amount of hp and the spy will get the y amount), then you can make a "fake" health item, like so:
Spoiler: code (Open)When you are making something like a tf2 thingy, I take it for granted you already know DECORATE to such an extent, that you actually understand the code I have spoilered for you.
Combinebobnt wrote:i can see the forum league is taking off much better than the ctf ones
GalactusToday at 1:07 PM
are you getting uncomfortable jap
feeling something happen down there
RE: Health pickups
Whoa, havent though about that, and yeah, i know decorate :P, thanks a lot sir, you really helped me outLollipop wrote: If you know the percentage each class will obtain from the pickup (if you know that the scout will get x amount of hp and the spy will get the y amount), then you can make a "fake" health item, like so:Spoiler: code (Open)When you are making something like a tf2 thingy, I take it for granted you already know DECORATE to such an extent, that you actually understand the code I have spoilered for you.
EDIT: In case anyone needs it, i made the code here
Spoiler: code (Open)
Last edited by Faad3e_ on Wed Jan 01, 2014 1:52 am, edited 1 time in total.