Raised This Month: $12 Target: $400
 3% 

Healthkit on dead body


Post New Thread Reply   
 
Thread Tools Display Modes
Midnight Kid
Member
Join Date: Aug 2017
Location: Chornobay, Ukraine
Old 12-09-2021 , 07:18   Re: Healthkit on dead body
Reply With Quote #91

Quote:
Originally Posted by Siska1 View Post
Can i ask you to remove the glow effect completely from the plugin ?
I don't know exactly how to remove it...
The key point is in glow, in fact. If I remove it, you just won't know whether you can take the medkit in the 1st, 2nd & 4th pick mode ('cause maybe only opponents will be able to take it); "blind" pick will be there. This is what the "kit_pick" cvar's description meant.
If I could make models of different colors and sizes, I'd have done it a long time ago. And so, we have what we have.
Midnight Kid is offline
Siska1
Senior Member
Join Date: Feb 2020
Location: BedRock
Old 12-09-2021 , 07:50   Re: Healthkit on dead body
Reply With Quote #92

Quote:
Originally Posted by Midnight Kid View Post
The key point is in glow, in fact. If I remove it, you just won't know whether you can take the medkit in the 1st, 2nd & 4th pick mode ('cause maybe only opponents will be able to take it); "blind" pick will be there. This is what the "kit_pick" cvar's description meant.
If I could make models of different colors and sizes, I'd have done it a long time ago. And so, we have what we have.
Unfortunately I don't understand enough to be able to modify the plugin.
I wanted a simple plugin from which to drop medkit, not to get more than 100 hp, but still be able to collect them from the ground to prevent the opponent to take them. And of course cvar for 10-15 hp from one medkit.
That's all, but I couldn't find one on the internet...
At this stage I use the colors like this - 0 0 0, so that there is no glow effect.
Anyway, thanks...

Last edited by Siska1; 12-09-2021 at 07:51.
Siska1 is offline
Send a message via Skype™ to Siska1
Midnight Kid
Member
Join Date: Aug 2017
Location: Chornobay, Ukraine
Old 12-09-2021 , 09:35   Re: Healthkit on dead body
Reply With Quote #93

Quote:
Originally Posted by Siska1 View Post
Unfortunately I don't understand enough to be able to modify the plugin.
I wanted a simple plugin from which to drop medkit, not to get more than 100 hp, but still be able to collect them from the ground to prevent the opponent to take them. And of course cvar for 10-15 hp from one medkit.
That's all, but I couldn't find one on the internet...
At this stage I use the colors like this - 0 0 0, so that there is no glow effect.
Anyway, thanks...
Original SMA in main post has these features.
But there's nothing to prevent the following cvars' values from being set in version 5.1:
"kit_res" "0"
"kit_hp" "10 15"

That's all.

P. S. OK, I'll add glow removing for "kit_res" "0" in SMA later. Just wait 5.2.
Midnight Kid is offline
Midnight Kid
Member
Join Date: Aug 2017
Location: Chornobay, Ukraine
Old 12-10-2021 , 13:11   Re: Healthkit on dead body
Reply With Quote #94

Update 5.2.
Now "kit_probres" "0" (1-type medkit mode; ex-"kit_res") isn't showing glow.
Cosmetic fixes.
Attached Files
File Type: sma Get Plugin or Get Source (death_medkit_drop.sma - 165 views - 10.1 KB)
File Type: 7z death_medkit_drop_amxx_1.9+.7z (491.9 KB, 104 views)
Midnight Kid is offline
Siska1
Senior Member
Join Date: Feb 2020
Location: BedRock
Old 12-11-2021 , 01:41   Re: Healthkit on dead body
Reply With Quote #95

Quote:
Originally Posted by Midnight Kid View Post
Update 5.2.
Now "kit_probres" "0" (1-type medkit mode; ex-"kit_res") isn't showing glow.
Cosmetic fixes.
I don't understand the update. I have glow all the time !!!
What settings should I use to not have a glow ?
Please help me !!!

Code:
DMD_KitProbRes=register_cvar("kit_probres","1")
	DMD_KitProbResPC=register_cvar("kit_probres_pc","50 30 15 5")
	DMD_KitPC=register_cvar("kit_hp","10 15")
	DMD_KitProbTeam=register_cvar("kit_probteam","1")
	DMD_KitProbTeamPC=register_cvar("kit_probteam_pc","40 20 40")
	DMD_PickMode=register_cvar("kit_pick","3")
	DMD_Fade=register_cvar("kit_fade","0")
	DMD_HudMsg=register_cvar("kit_msg","0")
	DMD_TeamColor=register_cvar("kit_tc","0")
	DMD_DelRespawn=register_cvar("kit_del_resp","1")
	DMD_LifeTime=register_cvar("kit_lifetime","20.0")
	DMD_Step=register_cvar("kit_drop_step","10.0")
Siska1 is offline
Send a message via Skype™ to Siska1
Midnight Kid
Member
Join Date: Aug 2017
Location: Chornobay, Ukraine
Old 12-11-2021 , 10:02   Re: Healthkit on dead body
Reply With Quote #96

Quote:
Originally Posted by Siska1 View Post
I don't understand the update. I have glow all the time !!!
What settings should I use to not have a glow ?
Please help me !!!

Code:
DMD_KitProbRes=register_cvar("kit_probres","1")
	DMD_KitProbResPC=register_cvar("kit_probres_pc","50 30 15 5")
	DMD_KitPC=register_cvar("kit_hp","10 15")
	DMD_KitProbTeam=register_cvar("kit_probteam","1")
	DMD_KitProbTeamPC=register_cvar("kit_probteam_pc","40 20 40")
	DMD_PickMode=register_cvar("kit_pick","3")
	DMD_Fade=register_cvar("kit_fade","0")
	DMD_HudMsg=register_cvar("kit_msg","0")
	DMD_TeamColor=register_cvar("kit_tc","0")
	DMD_DelRespawn=register_cvar("kit_del_resp","1")
	DMD_LifeTime=register_cvar("kit_lifetime","20.0")
	DMD_Step=register_cvar("kit_drop_step","10.0")
Just set "kit_probres" "0".
Midnight Kid is offline
Siska1
Senior Member
Join Date: Feb 2020
Location: BedRock
Old 12-12-2021 , 01:23   Re: Healthkit on dead body
Reply With Quote #97

Thank you very much, now everything is perfect...
Siska1 is offline
Send a message via Skype™ to Siska1
Old 04-11-2022, 04:03
Siska1
This message has been deleted by Siska1.
Siska1
Senior Member
Join Date: Feb 2020
Location: BedRock
Old 04-23-2022 , 20:07   Re: Healthkit on dead body
Reply With Quote #98

When someone is killed in the air, sometimes model stays there in the air...

Unfortunately, these first aid kits do not want to disappear from the earth and they accumulate too much...
__________________

Last edited by Siska1; 11-21-2022 at 14:38. Reason: i found something new
Siska1 is offline
Send a message via Skype™ to Siska1
bamaofc
New Member
Join Date: Mar 2024
Old 03-13-2024 , 17:24   Re: Healthkit on dead body
Reply With Quote #99

In this code, how can I make it so that when I kill CT, the cure for "Terrorist" drops and if I am a Terrorist and kills the CT, the "blue" cure drops?
and the "white" cure in case a player commits suicide?

Last edited by bamaofc; 03-14-2024 at 12:38.
bamaofc is offline
Midnight Kid
Member
Join Date: Aug 2017
Location: Chornobay, Ukraine
Old 03-14-2024 , 10:12   Re: Healthkit on dead body
Reply With Quote #100

bamaofc,
0. Better hide the code under the spoiler or delete it from comment, otherwise you risk getting admin warning.
1. Read about the cvar kit_pick in the description. What you want is done by kit_pick 1, because as far as I understood your comment, it's about killing the opponent regardless of the team.
(Maybe, it was be better to rewrite the code to hook team IDs, but since there are only 2 playing teams (Ts & CTs), I left the original idea from users 731 and sb123.)
2. Interesting idea about "player suicide", it wouldn't hurt to add a separate cvar for on / off that.
To be honest, at one time it was additionally planned to add anti-medkits, disguise their under traditional glow colors, so that players hesitated whether to take them or not? But it takes time, and since 2020, for some reason, I stopped in Counter-Strike modding. So, if I find free time, I'll report the results later.

Last edited by Midnight Kid; 03-14-2024 at 10:14.
Midnight Kid is offline
Reply


Thread Tools
Display Modes

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 04:50.


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