View Single Post
Author Message
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 04-18-2015 , 16:08   [NMRIH] Infinity 1.3.1 [2022/07/03]
Reply With Quote #1

Name: Infinity

Description: Make endless clip/ammo & stamina in NMRiH.
If you have selected the infinite ammunition, when reloading the weapon in inventory is added ammo exactly as lacking in the clip. Due to this space in the inventory remains as much as possible.
If you have selected the infinite clip, then reload button is blocked. That you are not bitten, when you accidentally press the button reloading weapons.

Changes in 1.3.1 [2022/07/03]:
  • Fixed error "Invalid Handle 0 (error 4)"
Changes in 1.3.1 [2021/11/21]:
  • Now cvar sm_inf_adm is works again
Changes in 1.3.1 [2021/11/20]:
  • Fixed error "Invalid client index -1"
Changes in 1.3.1:
  • Fixed error "Exception reported: Entity -1 (-1) is invalid"
Changes in 1.3.0:
  • Some code optimizations (e.g. instant removal of ammo boxes when turning on infinite ammo).
  • Now the code uses new syntax and is compatible with SM1.11
  • Added the ability to display in HUD the number of rounds of the player's current weapon and the name of the medicine in the hands.
  • Added the ability to select the ammo mode for administration (used no worse than normal players mode)
  • Added 6 new console variables (1 cvar in v1.2.0 and 5 cvars in v1.3.0)
Changes in 1.1:
  • Added new weapons from 1.09.5 (SKS without bayonet and Sako 85 without scope)
  • Every 10 seconds on the map will be removed all ammo boxes if infinite ammo switched on
Installation: Place compiled plugin (nmrih_infinity.smx) into the plugins folder (../addons/sourcemod/plugins/).

CVars:
  • nmrih_infinity_version - Plugins version
  • sm_inf_ammo - Ammo mode for all: 0 - Normal mode, 1 - Infinite ammo, 2 - Infinite clip
  • sm_inf_adm - Ammo mode for admins: 0 - Normal mode, 1 - Infinite ammo, 2 - Infinite clip
  • sm_inf_stamina - On/Off Infinite stamina
  • sm_inf_hud - On/Off display ammo number in the HUD
  • sm_inf_hud_color - HUD info color. Set by HEX (RGB or RRGGBB, values 0 - F or 00 - FF, resp.). Wrong color code = white
  • sm_inf_hud_update - Update info every x seconds (0.0 - show only changes)
  • sm_inf_hud_x - HUD info position X (0.0 - 1.0 left to right or -1 for center)
  • sm_inf_hud_y - HUD info position Y (0.0 - 1.0 top to bottom or -1 for center)

Source file at Github
Attached Images
File Type: jpg 20210928203241_1.jpg (94.4 KB, 339 views)
Attached Files
File Type: sp Get Plugin or Get Source (nmrih_infinity.sp - 2689 views - 5.7 KB)
File Type: sp Get Plugin or Get Source (nmrih_infinity 1.1.sp - 2894 views - 6.4 KB)
File Type: sp Get Plugin or Get Source (nmrih_infinity 1.2.0.sp - 380 views - 9.0 KB)
File Type: sp Get Plugin or Get Source (nmrih_infinity 1.3.1.sp - 528 views - 13.7 KB)
File Type: sp Get Plugin or Get Source (nmrih_infinity 1.3.1_21.11.2021.sp - 539 views - 13.5 KB)
File Type: sp Get Plugin or Get Source (nmrih_infinity 1.3.1_03.07.2022.sp - 1036 views - 13.5 KB)
__________________

Last edited by Grey83; 07-03-2022 at 05:27. Reason: now cvar sm_inf_adm is works again
Grey83 is offline