Raised This Month: $32 Target: $400
 8% 

Healthkit from dead


Post New Thread Reply   
 
Thread Tools Display Modes
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-24-2011 , 06:49   Re: Healthkit from dead
Reply With Quote #11

What I have done I use prop_physics_multiplayer, added model and hooked with SDKHooks to recognize "touch".

There is actually game own health kits https://developer.valvesoftware.com/...ealth_entities (Didn't figure that first place )
HL2MP:
Item_healthvial = (Default: 10)
Item_healthkit = (Default: 25)
TF2:
Item_healthkit_small = (Restores 20.5% health.)
item_healthkit_medium = (restores 50% of full health.)
item_healthkit_full = (full healing.)

So I could use those instead prop_physics_multiplayer and not need SDKHooks to look anymore who "touch" that entity for HL2MP and TF2.

Cs:s, Dod:s not have these.
Look one day when I have time.

*edit
dam, I try in Hammer and seems those item respawn after many seconds automatically , not good
__________________
Do not Private Message @me

Last edited by Bacardi; 11-24-2011 at 09:46.
Bacardi is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-26-2011 , 10:01   Re: Healthkit from dead
Reply With Quote #12

I added healthkit_from_dead_02.smx
With this you have opportunity change model what you want.
Don't use if you not need to, added wrong path or model will crash server!
Better test before add in your public server.
Now I have warning you.

Upload new files to players, you need second plugin for that.

Not anymore
__________________
Do not Private Message @me

Last edited by Bacardi; 11-30-2011 at 17:08.
Bacardi is offline
blue zebra
BANNED
Join Date: Jun 2010
Old 11-26-2011 , 10:51   Re: Healthkit from dead
Reply With Quote #13

Whats wrong with the original knag00's project? Only need to recompile that plugin, with the new wav and mdl files. Works perfectly. Thats all.
Example:
Code:
...
#define HEALTHKIT_SOUND "items/smallmedkit1.wav"
#define HEALTHKIT_MODEL "models/healthvial.mdl"
...

Last edited by blue zebra; 11-26-2011 at 10:52.
blue zebra is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-26-2011 , 12:39   Re: Healthkit from dead
Reply With Quote #14

Quote:
Originally Posted by blue zebra View Post
Whats wrong with the original knag00's project?
What if you go look and read posts ?
__________________
Do not Private Message @me
Bacardi is offline
blue zebra
BANNED
Join Date: Jun 2010
Old 11-26-2011 , 14:13   Re: Healthkit from dead
Reply With Quote #15

Ok, ok. Don't eat my head. Just wondering. You re-wroten an exist plugin, who works perfectly.
I still do not act, just ask. It's your business.

Last edited by blue zebra; 11-26-2011 at 15:32.
blue zebra is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-28-2011 , 09:39   Re: Healthkit from dead
Reply With Quote #16

Update
- Fix GetClientTeam() error when there not added (4) "Work suicide" in mode and player get killed by "world".
__________________
Do not Private Message @me
Bacardi is offline
Snake60
Senior Member
Join Date: Jul 2008
Location: Russia, Pskov
Old 11-29-2011 , 09:36   Re: Healthkit from dead
Reply With Quote #17

Hi, Bacardi! Love you version of this plugin. Works like a sharm
I make small modification of it:
  • Add autocreating of CFG file
  • Add random definition health for kit
It was lazy for me add cvars for it, but if you make it - that will be cool
Attached Files
File Type: cfg plugin.hfd.cfg (849 Bytes, 454 views)
File Type: sp Get Plugin or Get Source (healthkit_from_dead.sp - 820 views - 6.7 KB)
File Type: smx healthkit_from_dead.smx (6.0 KB, 260 views)
__________________
Snake60 is offline
Send a message via ICQ to Snake60 Send a message via MSN to Snake60 Send a message via Skype™ to Snake60
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-29-2011 , 09:49   Re: Healthkit from dead
Reply With Quote #18

Quote:
Originally Posted by Snake60 View Post
Hi, Bacardi! Love you version of this plugin. Works like a sharm
I make small modification of it:
  • Add autocreating of CFG file
  • Add random definition health for kit
It was lazy for me add cvars for it, but if you make it - that will be cool
Yea, I don't haven't add code to auto generate config file, because I want this work with SRCDS map configs.
(But can get work using plugin config and map config, just need remove cvars from plugin config)

I could add that random health.


*updated
Some new modes, new cvar and hfd_heal modification
__________________
Do not Private Message @me

Last edited by Bacardi; 11-29-2011 at 15:00. Reason: rolf
Bacardi is offline
Snake60
Senior Member
Join Date: Jul 2008
Location: Russia, Pskov
Old 11-29-2011 , 15:22   Re: Healthkit from dead
Reply With Quote #19

__________________
Snake60 is offline
Send a message via ICQ to Snake60 Send a message via MSN to Snake60 Send a message via Skype™ to Snake60
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 11-30-2011 , 05:34   Re: Healthkit from dead
Reply With Quote #20

Great plugin, but I have one question:

what's the purpose of:

Quote:
hfd_maxheal "100"
// Max heal
// min. 2.0
while we can set maxheal here:

Quote:
hfd_heal "15 , 100"
// How much healthkit heal player
// Using random values "min , max"
// min. 1
GrO is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:53.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode