View Single Post
Author Message
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 02-06-2016 , 12:24   [NMRiH] Safe Zone Health 1.0.2 [2016/03/21]
Reply With Quote #1

Name: Safe Zone Health

Description: Creates a effect, when health of safe zone restored by FEMA bag. Admin can set health for one or all safe zones by command or set amount safe zone heals at once by FEMA bags. All players can see amount of health all available SafeZones in the game chat.

Installation: Place compiled plugin (nmrih_safe_zone_health.smx) into the plugins folder (../addons/sourcemod/plugins/).

CVars:
  • nmrih_szh_version - Plugins version
  • sm_szh_max - Maximum health of safe zones that you can restore by FEMA bags (def. 1000, max. 1000000000)
  • sm_szh_amt - Amount safe zone heals at once by FEMA bags (def. 25, max. 100000000)

Commands:
  • sm_szh - Show health of available safe zones in the chat (sees only the player who wrote this command)
  • sm_szh <HP> [<id>] (need flag slay, else only will show health) - Set health for all available safe zones (0 - 999 999 999HP) or only for one safe zone (SafeZones id: "A" = "0", "B" = 1, "C" = "2" etc.)
    "sm_szh 12345 5" = set 12345HP to SafeZone F

Changes in 1.0.2 (2016/03/21):
  • Added CVar sm_szh_amt
  • Added new features for command sm_szh
  • Applied textures used by command sm_beacon
  • A little cleaned up code
  • Other small fixes
Changes in 1.0.1 (2016/02/11):
  • Now CVar sm_szh_max works
  • If anyone uses FEMA bags when SafeZone health more than the CVar sm_szh_max, that health would not be reduced to the value of this CVar

ToDo: apply textures used by command sm_beacon.

Note: For this plugin required textures from [NMRiH] Laser Aim ([NMRiH] Laser Aim 1.5.x (textures).zip).

Screenshot #1 (Steam) (sm_szh_max = 10000, sm_szh_amt = 1337)
Screenshot #2 (Steam) (sm_szh_max = 1000, sm_szh_amt > 1000)
Attached Files
File Type: sp Get Plugin or Get Source (nmrih_safe_zone_health 1.0.1.sp - 1034 views - 5.5 KB)
File Type: sp Get Plugin or Get Source (nmrih_safe_zone_health 1.0.2.sp - 1316 views - 6.9 KB)
__________________

Last edited by Grey83; 03-22-2016 at 06:39. Reason: New version, added new features
Grey83 is offline