Skip to content

v2.12.4

Compare
Choose a tag to compare
@DrVrej DrVrej released this 27 Jul 18:08
· 479 commits to master since this release

New

  • Added a new NPC-only weapon: Crowbar
  • Added Melee Weapon System! (It's mostly made for SNPCs!)
  • Added a melee weapon slot in the inventory for the human SNPCs (Current enemy is (very close and the NPC is out of ammo) OR (in regular melee attack distance) + must have more than 25% health)
  • Added warning messages when using outdated version of Garry's Mod (Especially because of Chromium branch)
  • Updated Weapon Translation System:
    • Added default translations for hold types melee, melee2, and knife to the combine, metrocop, and rebel animation sets!
    • Weapon translations can now accept tables!

General Changes & Improvements

  • SSG-08 and RPG can now only be fired if the NPC isn't moving, human SNPCs that are using these weapons will now act more stationary
  • SNPCs will no longer open doors that are locked or not supposed to be opened by NPCs (Applies to func_door and func_door_rotating)

General Fixes

  • Fixed humans being scared of their own grenade or an ally's grenade
  • Fixed grenade and melee attacks sometimes cutting off by the weapon firing animation
  • Fixed scared human SNPCs attempting to heal an ally while trying to run away
  • Fixed humans SNPCs often cutting off their death animation
  • Fixed anti-armor weapon changing values for the primary weapon
  • Fixed dead players able to control an NPC via the properties menu (C menu)
  • Fixed a console error on map startup

Notable Developer Changes

  • SNPC Bases:
    • Added (Human only): self.WeaponInventory_Melee, self.WeaponInventory_MeleeList
  • Weapon Base:
    • Added: self:CustomOnPrimaryAttack_MeleeHit(argent), self.NPC_StandingOnly, self.IsMeleeWeapon, self.MeleeWeaponDistance, self.MeleeWeaponSound_Hit, self.MeleeWeaponSound_Miss, self.NPC_BeforeFireSound, self.NPC_BeforeFireSoundLevel, self.NPC_BeforeFireSoundPitch