AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Code Snippets/Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=83)
-   -   [TUT] Customizing/Modifying weapons (https://forums.alliedmods.net/showthread.php?t=315863)

thEsp 04-28-2019 19:12

[TUT] Customizing/Modifying weapons
 
1 Attachment(s)
This is a simple tutorial which is about modifying weapons in Counter Strike
It's not really complicated as it sounds, but requires some basic knowledge (Medium to intermediate)
There MAY be better ways or options, but this is just an average tutorial.
I have commented most of the lines, and possibly even used stupid terms, so please don't mind me for that. =@

This features:
  • Custom sound(s)
  • Custom model(s)
  • Custom secondary attack
  • Custom magazine/clip size

For sample purposes I've added these:
Explosion at the point where shooting
Delay between each shot (Could be used for making semi-automatic weapons)
Aug/Sg530 zooming style
50 bullets per mag

Basically I replaced Galil contents with H&K(Heckler & Koch AG36,sophisticated German AR) ones.

While there is a explosion, it won't do damage, and only specific weapons can be changed(For example if you're using a skin made for AK47, it won't work with other weapons)

I will try to expand this tutorial(or create new one) and overlap what I said above^ whenever I have free time...

Bugs may exist (I only know one. If you pick a dropped Hk/Galil it's mag size will be set to selected amount; WHICH by default is 50.)

Actual Code

Xalus 05-05-2019 13:10

Re: [TUT] Customizing/Modifying weapons
 
Is it possible to customize reload sound?
For a project I want some people not to hear them and some people can.


Grtz,
Xalus

HamletEagle 05-05-2019 14:40

Re: [TUT] Customizing/Modifying weapons
 
Quote:

Originally Posted by Xalus (Post 2650420)
Is it possible to customize reload sound?
For a project I want some people not to hear them and some people can.


Grtz,
Xalus

You have to disable client prediction and manually play the sounds only to people that should hear them.

thEsp 05-05-2019 17:15

Re: [TUT] Customizing/Modifying weapons
 
Several days or weeks have passed since I uploaded the thread, I've collected some 'enough' information, and I'll probably do a totally new tutorial. I'll keep thinking what I need to add and/or fix.

Krtola 05-06-2019 05:26

Re: [TUT] Customizing/Modifying weapons
 
Quote:

Originally Posted by Xalus (Post 2650420)
Is it possible to customize reload sound?
For a project I want some people not to hear them and some people can.


Grtz,
Xalus

I've asked the same question a long time ago,and yes it is possible.
Will try to find that topic.


All times are GMT -4. The time now is 18:21.

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