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

Heart Health


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff       
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 12-02-2016 , 07:20   Heart Health
Reply With Quote #1


Heart Health
∞ v1.6, last update at 4 of January 2017


Everytime when somebody die, a red heart will be respawned above of his bode. If you touch that heart you get +1 lives count, using a life you can get more health, using more healths you can even respawn yourself.

REQUIREMENTS
∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙ ∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙ ∙

  • Fun
  • Fakemeta
  • Engine
  • Nvault
  • Hamsandwich


Cvars
∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙ ∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙ ∙

Spoiler



Admin Commands
∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙ ∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙ ∙


Spoiler




Chat Commands
∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙ ∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙ ∙


Spoiler


Images
∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙ ∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙ ∙

Spoiler
Attached Files
File Type: sma Get Plugin or Get Source (HeartHealth.sma - 717 views - 10.7 KB)
File Type: zip HeartHealth.zip (10.7 KB, 101 views)
__________________
Project: Among Us

Last edited by Craxor; 05-27-2017 at 18:02.
Craxor is offline
Send a message via ICQ to Craxor
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 12-02-2016 , 07:21   Re: Heart Health [1.0]
Reply With Quote #2

Rezerved ...

Credits
Spoiler
__________________
Project: Among Us

Last edited by Craxor; 01-04-2017 at 08:07.
Craxor is offline
Send a message via ICQ to Craxor
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 12-02-2016 , 08:02   Re: Heart Health [1.0]
Reply With Quote #3

Seems fun.

Some suggestions:

1) Add more entities that could be dropped when killing a player: ammo, armor, ...
2) Remove players dropping their weapons on death. When players die, they could also drop an enitity which allows you to pick a weapon upgrade or something simular.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 12-02-2016 , 08:10   Re: Heart Health [1.0]
Reply With Quote #4

Quote:
Originally Posted by Napoleon_be View Post
Seems fun.

Some suggestions:

1) Add more entities that could be dropped when killing a player: ammo, armor, ...
2) Remove players dropping their weapons on death. When players die, they could also drop an enitity which allows you to pick a weapon upgrade or something simular.
Thanks for suggestion but is kind of off-topic )

1) The plugin is about Lives, when someone die it spawn a red heart, you touch it you get +1 life, you can use that life to respawn ... i know you mean to change and to add more random spawn items, like ammo, money, but is lot of work ... if you wanne give a help for sure will work together, because i'm working in real life + also i have another plugin wich i'm trying to solve some stuffs ( CS Pum ) and i have not so much time + also my low experience in pawn ...

2) Do you mean it is possibile to exist another plugin wich dropping something similar and could interfere with mine one? This is kind of stuffs wich server-owners should handle.

I wish to focus only on lifes / health, stuffs like that ... but i'm waiting yor answer for '1'.
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
PartialCloning
Senior Member
Join Date: Dec 2015
Old 12-02-2016 , 10:03   Re: Heart Health [1.0]
Reply With Quote #5

1. Use Ham_Touch with info_target and filter out the classname in that forward, or use register_touch with the custom classname.

2. You're checking if the entity created is valid after setting it's origin?

3. You should cache the value of "engfunc(EngFunc_AllocString, "info_target")" and use that when creating the entity.
PartialCloning is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 12-02-2016 , 10:23   Re: Heart Health [1.0]
Reply With Quote #6

Quote:
Originally Posted by PartialCloning View Post
1. Use Ham_Touch with info_target and filter out the classname in that forward.

2. You're checking if the entity created is valid after setting it's origin?
EDIT: Done.

About number 3 i'm asking you 'why' and what is doing
__________________
Project: Among Us

Last edited by Craxor; 12-02-2016 at 15:21.
Craxor is offline
Send a message via ICQ to Craxor
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 12-03-2016 , 11:34   Re: Heart Health [1.0]
Reply With Quote #7

Cool
__________________
edon1337 is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 12-03-2016 , 12:14   Re: Heart Health [1.0]
Reply With Quote #8

Quote:
Originally Posted by edon1337 View Post
Cool
Thanks.

Update, changelog for info.
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-03-2016 , 15:11   Re: Heart Health [1.1] [ Last up: 3 December of 2016 ]
Reply With Quote #9

3. It's because the same string will be allocated multiple times, and that memory will be cleared only on hlds shutdown. The only way to avoid that is to cache the value, because it won't change.
__________________
HamletEagle is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 12-03-2016 , 18:54   Re: Heart Health [1.1] [ Last up: 3 December of 2016 ]
Reply With Quote #10

Quote:
Originally Posted by HamletEagle View Post
3. It's because the same string will be allocated multiple times, and that memory will be cleared only on hlds shutdown. The only way to avoid that is to cache the value, because it won't change.
"Multiple times' Do you mean each time a new Entity is maded when somebody die, correct?
Ok i will do it .......but! .......

What about the plugin,code, optimizations , approvement ??
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
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 16:04.


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