View Single Post
Plugin Info:     Modification:          Category:         
SoulWeaver16
Senior Member
Join Date: May 2021
Location: Uruguay
Old 08-29-2022 , 19:39   SideWeapons v0.2 (New BackWeapons) [CS/CZ] {1 Sep 2022}
Reply With Quote #1

Description:
Just like BackWeapons 0.0.6 works, this plugin works as an update, adding the pistols, grenades and knife to the code.

Requirements:
  • AmxModX 1.8+
  • Models


Instructions:
  1. Download the required files [v0.1]:[CS Models][CZ Models]
  2. Compile plugins locally.
  3. Put the models in: "models/"
    Ex: models/sideweapons3.mdl
    models/backweapons2_ns.mdl (Optional)
  4. Put in plugin.ini:
    SideWeapon_no_knife.amxx
    backweapon3.amxx (Optional)


Future things:
- Implement the BackWeapons plugin in code to use a single model.
- Cvars to control with or without silencer, whether to show or not, primary, secondary, grenade or knife weapons.

Change-Log:
  • * 0.2 - 9/1/22
    - Fixed the location of the pistols, moving from the leg to the waist, to prevent it from going unnoticed.
    - Added the knife and grenades.
    Requirements:
  • * 0.1 - 8/29/22
    - First release. Waiting for feedback. It was done quickly.
    Click image for larger version

Name:	de_dust2_cz0003.jpg
Views:	495
Size:	38.2 KB
ID:	196566Click image for larger version

Name:	de_dust2_cz0004.jpg
Views:	378
Size:	40.7 KB
ID:	196567
    Click image for larger version

Name:	de_dust2_cz0000.jpg
Views:	505
Size:	32.5 KB
ID:	196568Click image for larger version

Name:	de_dust2_cz0002.jpg
Views:	370
Size:	27.7 KB
ID:	196569

Cvars [BackWeapon plugin]:
  • bw_model <#> // Model to use.
    Default: "models/backweapons2.mdl"
  • bw_nosil <#> // Use nosil or not, only models backweapons2_ns.mdl and backweapons2_cz_ns.mdl supported.
    Default: "1"
  • bw_maxweapons <#> // Max weapons you can see in a player's back (in case your server allow multiple weapons).
    Default: "1"

Notes v0.2:
  • Bug: Model animations are speed up.
    Spoiler
  • Bug: Buying a pistol with the knife in hand, having _cl_autowepswitch 1, will have the gun in hand and on the back, but changing weapons fixes it.
  • You can disable 3rd person by changing the code:
    #define TEST_3RD -> //#define TEST_3RD

Credits:
Any contribution of code or ideas that you want to contribute, is welcome.
Attached Files
File Type: sma Get Plugin or Get Source (SideWeapon_no_knife.sma - 397 views - 4.4 KB)
File Type: sma Get Plugin or Get Source (SideWeapons0.2.sma - 558 views - 4.7 KB)

Last edited by SoulWeaver16; 05-11-2023 at 13:19.
SoulWeaver16 is offline