hp booster

Started by kzuq`MaD mapper
22/07/2010 14:38
Page 1 of 1
kzuq`MaD mapper22/07/2010 14:38

Hi.
Tell me please, how i can do hp booster like kz_dimblock?

FuZzy1 mapper22/07/2010 18:03

Use a func_button to trigger the door..

dEMolite mapper23/07/2010 09:23(edited 23/07/2010 09:24)

func_button which triggers a trigger_hurt or a func_door with a minus damage to heal the user.

perd0 mapper19/01/2016 04:19(edited 19/01/2016 04:19)

can somebody do this for me as a rmf and upload here? im struggling with those button and door/hurn entities. wanna use it in my new map. thanks a lot.

Image

daza mapper19/01/2016 04:30

are you in need of a normal hp booster or does it have to be a button you click?

perd0 mapper19/01/2016 04:33

wanna use this type of booster as on that pic - the button you click and it heals you. kind of like it more than the other one.

dEMolite mapper19/01/2016 21:01

Here you go perd0
http://www87.zippyshare.com/v/LgXDaWe0/file.html

explaining:

func_button at brush chest high
func_door a bit higher than the button and higher as the players high.

func_door settings:
name: door
Render Mode: Texture
FX Amount: 0
delay before close: 0.1
Damage inflicted when blocked: -1000

Yaw: Down


func_button settings:
target: door
delay before reset: 0.1

Flags
Don't Move


So we dont need to see the thing which hits us. So we give the func_door a render mode of texture and an fx amount of 0, which makes the texture invisible. The yaw to down gives the door the advice to move only down, which we should always use when we want to get hit from a button. delay before close is just in seconds how long the entity should be inactive to be used again. low timer = better reacting time for the button. Damage inflicted when blocked, a positive value loses you health or vice versa negative vaule you get health.

to the button settings: target is the name of the entity which should be triggered from the button e.g here the name of the door "door"
delay before reset same value as the door to make somekind of a spam effect. Flag Don't move otherwise the button moves a bit and then triggers the trigger entity.

if something is still unclear just shoot it out :)

perd0 mapper20/01/2016 01:18(edited 20/01/2016 01:19)

Thanks for the file and thanks for the explanation.
I was indeed imagining there must be some way to make 'something' smash us to deal dmg to us, since there was this door entity, of which purpose is to make movement only, I just couldn't make it work.

Thanks again, it's good to have those inactive mappers who still remember that stuff tho, hehe.

Page 1 of 1

Please log in to post replies.