AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:GO] Custom Weapons (v1.0.4 | 4 May 2022) (https://forums.alliedmods.net/showthread.php?t=337636)

KoNLiG 05-04-2022 09:37

[CS:GO] Custom Weapons (v1.0.4 | 4 May 2022)
 
Custom-Weapons

Description:
Provides an API for custom weapons management.


In-game demonstration:


Features:

Quote:

◾ Customizable weapon view/world/dropped model.
◾ Customizable weapon shot sounds.
◾ Provides both model and shot sound hooks, can be used for shop integrations.
API (customweapons.inc):
Spoiler


Change Log:
Quote:

4 May, 2022 [1.0.0]
• Initial release.
Quote:

6 May, 2022 [1.0.1]
• Validate weapon index to prevent log error.
Quote:

4 June, 2022 [1.0.1]
• Validate client index to prevent a log error, removed unnecessary code parts.
Corrections, suggestions and improvements are welcome!


Note: The github workflow compiles the source code using the latest 1.11 compiler, which means that 1.10 servers will fail to load this plugin.
If you're looking to run this plugin on a 1.10 server, you'll have to compile it manually with a compiler that supports 1.10 builds


GitHub Repository
Download Via Workflow

bigborther 05-06-2022 22:01

Re: [CS:GO] Custom Weapons (v1.0.0 | 4 May 2022)
 
gunshot sound has been customised, great!

KaV3R 05-07-2022 12:25

Re: [CS:GO] Custom Weapons (v1.0.0 | 4 May 2022)
 
Hi you can help me how i can add custom weapon model in game?

KoNLiG 05-07-2022 22:37

Re: [CS:GO] Custom Weapons (v1.0.0 | 4 May 2022)
 
Quote:

Originally Posted by bigborther (Post 2778813)
gunshot sound has been customised, great!

:)

Quote:

Originally Posted by KaV3R (Post 2778860)
Hi you can help me how i can add custom weapon model in game?

Code:

// weapon = weapon entity index
CustomWeapon custom_weapon = CustomWeapon(weapon);
if (custom_weapon)
{
        custom_weapon.SetModel(CustomWeaponModel_View, "models/...");
        custom_weapon.SetModel(CustomWeaponModel_World, "models/...");
        custom_weapon.SetModel(CustomWeaponModel_Dropped, "models/...");
               
        custom_weapon.SetShotSound("..."); // file relative to "sound" folder
}


hoyxen 05-08-2022 17:35

Re: [CS:GO] Custom Weapons (v1.0.0 | 4 May 2022)
 
flag support?

KoNLiG 05-08-2022 23:01

Re: [CS:GO] Custom Weapons (v1.0.0 | 4 May 2022)
 
Quote:

Originally Posted by hoyxen (Post 2778965)
flag support?

This is surely possible with the existing API hooks

paulo_crash 05-14-2022 23:21

Re: [CS:GO] Custom Weapons (v1.0.0 | 4 May 2022)
 
interesting, thanks for sharing. :bacon!::bacon!::bacon!:

Can we expect any plugin to support it?

In any case, I believe there are already some that may include compatibility with this API, Custom Weapons Menu and others.

incnovikov 08-25-2022 18:13

Re: [CS:GO] Custom Weapons (v1.0.4 | 4 May 2022)
 
fix pls, SM 1.10 stable
https://i.imgur.com/UjtfDPn.png

KoNLiG 09-01-2022 12:30

Re: [CS:GO] Custom Weapons (v1.0.4 | 4 May 2022)
 
Quote:

Originally Posted by incnovikov (Post 2787398)
fix pls, SM 1.10 stable
https://i.imgur.com/UjtfDPn.png

You'll have to use a v1.11 compiler or above.

TiTyaN 10-20-2022 23:58

Re: [CS:GO] Custom Weapons (v1.0.4 | 4 May 2022)
 
can this plugin add a new weapon?
or replace the original weapon?


All times are GMT -4. The time now is 15:44.

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