Raised This Month: $ Target: $400
 0% 

Healthkit on dead body


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Midnight Kid
Member
Join Date: Aug 2017
Location: Chornobay, Ukraine
Old 10-13-2019 , 14:45   Re: Healthkit on dead body
Reply With Quote #25

UNOFFICIAL RELEASE UPDATE.
VERSION 5.0.


Changes:
- Created 4 types of medkits (low, medium, high, extra) and their drop probability.
- Added probability of medkit glow colours.
- Created 4 modes of medkit drop and random of these modes.
- Added lifetime and animation for step drop (by MayroN).
- Fixed small bugs.

New cvars added and fixed:

kit_pick (0-4):
0 - random selection of 4 modes in every round. The chat message informs player about selected mode.
1 - medkits can be picked by opposite team only (red / blue medkit glow + team colour fadescreen)
2 - medkits can be picked by partner team only (red / blue medkit glow + team colour fadescreen)
3 - medkits can be picked by anyone (white medkit glow + white colour fadescreen)
4 - random pickup rules for every medkit (glow colour shows what team can take the medkit: red for T, blue for CT or white for both teams)

kit_prob (0-1): turn on / off probability of medkits in 4th kitpick mode.
kit_prob_pc a b c: nums of that probability in percents (a - for T; b - for both teams; c - for CT).

kit_res (0-1): turn on / off 4 medkit types for healing HP. If off-mode activated, there's only 1 type of medkit.
kit_res_pc a b c d: nums of that probability in percents:
1st type - low (healing - 0,01-25,00 % HP; probability - a %);
2nd - medium (healing - 25,01-50,00 % HP; probability - b %);
3rd - high (healing - 50,01-100,00 % HP; probability - c %);
4th - extra (healing - 100 % HP; probability - d %).
kit_hp a b: min (a) and max (b) healing HP in percents for kit_res 0 (off-mode).
kit_msg (0-1): turn on / off HUD-message of healing information.
kit_tc (0-1): turn on / off team glow colour for fadescreen and HUD-message in 3rd and 4th medkit mode when player take medkit with white glow.

kit_lifetime: timelimit of medkit staying on the map (in seconds). For value 0 the medkit lies for the specified deadline by the kit_del_resp.
kit_drop_step: radius of medkit drop.

Replacing cvars:
kit_del → kit_del_resp.

Thanks MayroN, sites amx-x.ru, c-s.net.ua for the great help in finding models, bug fixing and optimizing code.
Attached Files
File Type: sma Get Plugin or Get Source (death_medkit_drop.sma - 501 views - 9.9 KB)
File Type: 7z cstrike.7z (508.6 KB, 281 views)

Last edited by Midnight Kid; 08-20-2020 at 02:59.
Midnight Kid is offline
 


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 09:06.


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