View Single Post
Author Message
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Old 05-20-2018 , 19:02   [CSGO Snippet] Give+Remove Heavy Assault Suit
Reply With Quote #1

Simple plugin to give/remove it: https://github.com/Bara/TroubleinTer...removeHeavy.sp

Some explanations:
m_bHasHeavyArmor - For Overlay, Speed and (maybe - I'm not sure) Weapon Restriction
m_bWearingSuit - For Armor icon and (maybe - I'm not sure) Weapon Restriction
m_ArmorValue - To reset armor back to 0
And if you want to reset client model, use GetClientModel before you give item_heavyassaultsuit.

(Primary) Weapons that works with heavy assault suit: p90, m249, negev, nova, xm1014, sawedoff, mag7, mac10, mp9, mp7, ump45 and bizon
All secondary weapons works fine.

Thanks to IAmCow for the tip with m_bHasHeavyArmor.
Attached Files
File Type: sp Get Plugin or Get Source (removeHeavy.sp - 390 views - 1.3 KB)
__________________
Discord (Bara#5006) | My Plugins (GitHub)
You like my work? Support is not a crime.

Last edited by Bara; 10-26-2020 at 18:07.
Bara is offline