Raised This Month: $32 Target: $400
 8% 

SideWeapons v0.2 (New BackWeapons) [CS/CZ] {1 Sep 2022}


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
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:	484
Size:	38.2 KB
ID:	196566Click image for larger version

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

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

Name:	de_dust2_cz0002.jpg
Views:	356
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 - 379 views - 4.4 KB)
File Type: sma Get Plugin or Get Source (SideWeapons0.2.sma - 553 views - 4.7 KB)

Last edited by SoulWeaver16; 05-11-2023 at 13:19.
SoulWeaver16 is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: Sγo Paulo, Brasil
Old 08-30-2022 , 01:54   Re: SideWeapons v0.1
Reply With Quote #2

Seems pretty cool. Good job!
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
SoulWeaver16
Senior Member
Join Date: May 2021
Location: Uruguay
Old 08-30-2022 , 02:03   Re: SideWeapons v0.1
Reply With Quote #3

Quote:
Originally Posted by EFFx View Post
Seems pretty cool. Good job!
Then I will do the same with the grenades, although years ago they said that it was a lot of load on the server, I did tests with 31 bots and it is quite stable, if possible everything in the same plugin configurable with cvars
__________________
Extended Arm Weapon Skin v2.1 {16/Apr/23}
(Detect which class is and associate it with the corresponding arms)
SideWeapons v0.2 {01/Sep/22}
(New version of Back Weapons v1.87)

SoulWeaver16 is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: Sγo Paulo, Brasil
Old 08-30-2022 , 02:12   Re: SideWeapons v0.1
Reply With Quote #4

You can put the grenades on the waist, since the animation of the grenade comes from the front to raising the hand backwards. Not that big of a grenade tho.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
SoulWeaver16
Senior Member
Join Date: May 2021
Location: Uruguay
Old 08-30-2022 , 14:18   Re: SideWeapons v0.1
Reply With Quote #5

Quote:
Originally Posted by EFFx View Post
You can put the grenades on the waist, since the animation of the grenade comes from the front to raising the hand backwards. Not that big of a grenade tho.
The size can be adjusted on the subject of grenades, but speaking of pistols, I've been testing, and if I put them where they should go, they go easily unnoticed without a semiclip plugin.
I plan to put them back, like in some CSGO models, that or I could choose to edit the models and delete that gun with the holster they carry, I have not decided yet
Click image for larger version

Name:	phoenix_blog_large.jpg
Views:	274
Size:	24.7 KB
ID:	196579
__________________
Extended Arm Weapon Skin v2.1 {16/Apr/23}
(Detect which class is and associate it with the corresponding arms)
SideWeapons v0.2 {01/Sep/22}
(New version of Back Weapons v1.87)


Last edited by SoulWeaver16; 08-30-2022 at 14:19.
SoulWeaver16 is offline
SoulWeaver16
Senior Member
Join Date: May 2021
Location: Uruguay
Old 09-01-2022 , 17:00   Re: SideWeapons v0.1 [CS/CZ]
Reply With Quote #6

* 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.

Last edited by SoulWeaver16; 09-01-2022 at 17:01.
SoulWeaver16 is offline
iclassdon
AlliedModders Donor
Join Date: May 2006
Old 09-03-2022 , 10:54   Re: SideWeapons v0.2 [CS/CZ]
Reply With Quote #7

Love it! thanks for this.
iclassdon is offline
Send a message via MSN to iclassdon
MayroN
Senior Member
Join Date: Aug 2017
Location: Kyiv
Old 09-03-2022 , 16:41   Re: SideWeapons v0.2 [CS/CZ]
Reply With Quote #8

The controller in the model is needed in any case for custom players, so that you can move the movement of the model with the code

Otherwise, the pistols will be inside the leg or far from it.



Also, standard player models already have a pistol on their legs by default.
Therefore, the same controller will save the situation in order to transfer the model to the other leg
Or manually remove pistols from standard player models so that they don’t duplicate

__________________
• МультиМод CS • 83.222.97.124:27015

MayroN is offline
Send a message via ICQ to MayroN Send a message via Skype™ to MayroN
SoulWeaver16
Senior Member
Join Date: May 2021
Location: Uruguay
Old 09-03-2022 , 17:24   Re: SideWeapons v0.2 [CS/CZ]
Reply With Quote #9

Quote:
Originally Posted by MayroN View Post
The controller in the model is needed in any case for custom players, so that you can move the movement of the model with the code

Otherwise, the pistols will be inside the leg or far from it.



Also, standard player models already have a pistol on their legs by default.
Therefore, the same controller will save the situation in order to transfer the model to the other leg
Or manually remove pistols from standard player models so that they don’t duplicate

I understand your point, also the location was made for CZ models, I already added models for CS, anyway although for v0.1, I updated the location, sticking it more to the body, for v0.2, I chose to put them on the back, like it is seen in the video, a pity that the models come with an unusable weapon, because it breaks all coherence.
And actually making the weapons be placed with cvars is a very clever idea, but I don't know if it's possible through code, to tie a submodel to a bone of the model, and then control its distance and angle, correct me if I'm wrong. Perhaps it is possible and for v0.3 to work that way.
__________________
Extended Arm Weapon Skin v2.1 {16/Apr/23}
(Detect which class is and associate it with the corresponding arms)
SideWeapons v0.2 {01/Sep/22}
(New version of Back Weapons v1.87)


Last edited by SoulWeaver16; 09-03-2022 at 17:31.
SoulWeaver16 is offline
MayroN
Senior Member
Join Date: Aug 2017
Location: Kyiv
Old 09-03-2022 , 19:40   Re: SideWeapons v0.2 [CS/CZ]
Reply With Quote #10

Here is the code and model on the controllers

Everything you need is there and you can easily combine everything together with weapons, pistols, knives and grenades and release the latest update and end this forever

https://goldsrc.ru/resources/302/
__________________
• МультиМод CS • 83.222.97.124:27015

MayroN is offline
Send a message via ICQ to MayroN Send a message via Skype™ to MayroN
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:52.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode