Page 1 of 1

[CS:GO] Always Weapon Skins [2.2.8 :: 2018.12.09]

Posted: Thu Jan 23, 2020 11:55 am
by Andreeas
Description
A Useful plugin for servers that have shops/markets that allow players to purchase weapons from the opposite team. This plugin allows players who purchase weapons for the opposite team, to still receive their weapon skin based on their CS:GO weapon layout. So regardless of the team. Players always get their weapon skins. Hence the name. Always Weapon Skins

*** This plugin supports Last Request for the Hosties jail break mod. Players in last request wont have their weapons replaced. - Requested by The1Speck and Bchewy. ***

Installation instructions
Install the latest version of DHooks
Copy the contents of the attached zip into your "/csgo/" directory

Configuration (convars)
  • aws_enable - Enables plugin
    1 - Enabled (default)
    0 - Disabled
    aws_skipmapweapons - Disables replacement of map weapons
    1 - Enabled
    0 - Disabled (default)
    aws_skipnamedweapons - Disables replacement of map weapons which have names (special weapons)
    1 - Enabled (default)
    0 - Disabled
    aws_debugmessages - Display debug messages in client console
    1 - Enabled
    0 - Disabled (default)

Code: Select all

aws_enable 1
aws_skipmapweapons 0
aws_skipnamedweapons 1
aws_debugmessages 0

Updates:
  • Version 1.1
    - Using SetEntProp with m_iTeamNum instead of full teamswitch
    - This is much more efficient as an actual team switch is not taking place
    - Bots don't process weapon respawning

    Version 1.2
    - Added detection for spawning of weapon_m4a1_silencer, weapon_usp_silencer and weapon_cz75a

    Version 1.3
    - Fixed error spewing in console about an invalid entity index

    Version 1.5
    - Using an improved method to detect if weapons need to be respawned
    - Fixed crashing on Sourcemod 1.6.1

    Version 1.6
    - Added cvar 'aws_alwaysreplace' to allow replacing of all map weapons

    Version 1.7
    - Added cvar 'aws_enable' to disable/enable plugin
    - Added cvar 'aws_delay' which delays the weapon respawn
    - Added support for sm_hosties - Players in last request wont have their weapons replaced

    Version 1.8
    - Added cvar 'aws_skipnamedweapons' to disable replacement of special map weapons
    - Weapon information is now stored in a Trie (Thanks Root_)

    Version 1.9
    - Added cvar 'aws_debugmessages' to enable/disable debug messages
    - Cleaned up code (readability) and added more comments

    Version 1.9.1
    - Recompiled using the Sourcemod 1.7.1 compiler

    Version 2.0.0 (Requires GNI 1.0.4)
    - Rebuilt using DHooks and GNI resulting in much better performance

    Version 2.0.1 (Requires GNI 1.0.6)
    - Compatibility update to stop paintkit plugin crashes

    Version 2.0.3 (Requires GNI 1.0.8)
    - Fixed dependency linking to GNI
    - Improved hook processing

    Version 2.0.4 (Requires GNI 1.0.8)
    - Fixed map weapon m4a1-s not replacing correctly

    Version 2.2.2
    - Merged GiveNamedItemEx (removed dependency)
    - Fixed crashes on Linux
    - Added cvar aws_skipmapweapons
    - Moved to transitional syntax

    Version 2.2.3
    - Updated gamedata

    Version 2.2.4
    - Fixed error in cvar changes
    - Added revolver support for map weapon replacement

    Version 2.2.5
    - Utilities no longer process when picked up

    Version 2.2.6
    - Gamedata loads from `sdktools.games`
    Version 2.2.7
    - Add copyright header
    - Skip process for utilities weapon_healthshot and weapon_tagrenade
    - Enable classname mapping for new class weapon_mp5sd
    - Improved debug logging messages

alwaysweaponskins-2.2.8.zip