Counter-Strike 1.6 Icon CS1.6 Game file

[AMXX] CS:GO M4A1-S and M4A4

Hey, you! We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending hellmonja points.
  • Post: Give hellmonja your thoughts on this Game file.
  • Vote: Help hellmonja win the Monthly Awards.
  • Rate: Give this Game file a rating out of 10.
  • Flag: Alert moderators and warn members of a problem with this Game file.
  • Watch: Get notified when this Game file is updated.
Mascot

Join the community!

Sign up

Already a Bananite? Login

Updates

CSWS 1.3
  • Better player death detection
  • Better new round detection
  • Small fixes and optimizations
  • Improved un/silenced p_models swapping
  • Fixed inspect function
  • More robust ammo restriction to 20/40
  • Ejecting shells on M4A4
  • Changes in M4A4 HUD sprites and kill icon
  • Fixed muzzle flashes of p_models
hellmonja avatar
hellmonja avatar Banned
CS:GO Ports Flag Affiliation: CS:GO Ports
Member Joined 2y
287 points Ranked 13280th
28 medals 5 rare
  • Received thanks 50 times Medal icon
  • Returned 1000 times Medal icon
  • Thanked 50 submitters Medal icon
  • 10 submissions featured Medal icon
  • Reached 50 subscribers Medal icon
  • One month a member Medal icon
hellmonja avatar
hellmonja
CS:GO Ports Flag
CS:GO Ports
1mo
Extra sound replacements
  • Added extra fire sounds to replace the M4A4's silenced fire sounds.
As reported by papaschlange. This, I admit, is just a quick fix as I can't see thru the code how a bot is able to switch into silenced mode...
hellmonja avatar
hellmonja avatar Banned
CS:GO Ports Flag Affiliation: CS:GO Ports
Member Joined 2y
287 points Ranked 13280th
28 medals 5 rare
  • Received thanks 50 times Medal icon
  • Returned 1000 times Medal icon
  • Thanked 50 submitters Medal icon
  • 10 submissions featured Medal icon
  • Reached 50 subscribers Medal icon
  • One month a member Medal icon
hellmonja avatar
hellmonja
CS:GO Ports Flag
CS:GO Ports
2mo

Written on CS Weapons System Mod v1.3

IMPORTANT: Backup all your M4A1 files first before proceeding just to be sure. Also choose only one plugin to install, you cannot have both.

 “With a smaller magazine than its unmuffled counterpart, the silenced M4A1 provides quieter shots with less recoil and better accuracy.”

DESCRIPTION:

Adds CSGO's M4A1-S as a separate weapon to CS 1.6 and changes the default M4A1 into CS:GO's M4A4.

This one features an ammo handling system as it sets reserve ammo to just 40 instead of the default 90 and prevents buying ammo beyond that amount. In theory, BPAMMO can be set higher than the base weapons default and the code should handle it well, although I haven't tried this yet.

Another notable feature is having two weapons in one plugin. The M4A4 has a slightly higher rate of fire and recoil, and the silencer is disabled, while the M4A1-S' is left untouched but damage is slightly higher to make it more proficient in long range engagements.

Attached are additional textures and another plugin for those who just want to add the M4A4 in their game and leave the default M4A1 unchanged.

WEAPON STATS:



PREREQUISITES:

  • CS 1.6 with the latest AMXmodX installed properly.
  • Know-how on installing plugins.

REQUIRED MODULES:

amxmodx | cstrike | engine | fakemeta | fun | hamsandwich | xs

CONSOLE COMMANDS:

  • m4a1s - command for buying the Weapon. If you don't have a buy menu especially edited, you can bind this to a key like "bind f4 m4a1s" which will allow you to buy the weapon by pressing the F4 key.
  • m4a4 - buy command for the M4A4 plugin.
  • inspect - Activates inspect animation.
  • repurchase - A version of rebuy that includes the custom weapon. Will still work for any other weapon

CVARS:

  • csws_decals - [default 0] Changes the bullet hole decals. Set it to 0 if you're using default decals and to 1 if you're using the CSGO decals mod.

INSTALLATION:

  1. Choose only one plugin to install.
  2. Like any plugin, extract contents, then copy-paste the 'cstrike' folder over your 'cstrike folder'
  3. Go to 'cstrike/addons/amxmodx/configs' and open 'plugin.ini' in Notepad. Type the name of the plugin (csgo_m4a1s.amxx) in a new line at the bottom. Save upon closing.
  4. Go to 'cstrike/sprites' and open 'hud.txt' in Notepad. In a new line at the bottom, copy-paste the code below, then save upon closing:
  5.  d_m4a1s 640 640csws02_s 170 50  50 13
     d_m4a4  640 640csws01_s 170 13  50 16
  6. In-game, type "bind f inspect" in the console to bind the Inspect function to the F key.
  7. To bind the Repurchase function, let's say, to F2, type in the console "bind f2 repurchase". Now you can use that as your rebuy to include the M4A1-S.
  8. For people who know how to edit CS menus, you can replace the command from "rebuy" to "repurchase;rebuy". That way, even with the plugin disabled/removed the rebuy function will still work.

KNOWN ISSUES:

  • Kill icon does not work on everyone. Still working on a solution.
  • As of writing, it also has conflicts with the Death and Money plugin.
  • Bullet hole decals do not appear on doors, and probably a few select surfaces.
  • Shells when firing are not mirrored when the weapon is oriented to the left.

Map Featured:
css_aztec by Tatu Eugen

Download

Posts

  • 1
  • 2
  • 1
  • 2

Share

Shareable Image:
Share banner
HTML embed code:
BB embed code:
Markdown embed code:

More embeddable images

Bookmark and Share

Studio

Credits

CODE
Sneaky.amxx avatar GlobalModders Development Flag
GlobalModders Development
Sneaky.amxx avatar Offline
Moderator Joined 7y
588 points Ranked 7344th
21 medals 5 rare
  • Submitted 20 Gamefiles Medal icon
  • Received thanks 50 times Medal icon
  • Submitted 50 Maps Medal icon
  • Submitted 20 Maps Medal icon
  • 6 years a member Medal icon
  • Became a Studio Leader Medal icon
Original Weapons Code
dias GlobalModders Development Flag
GlobalModders Development
dias Offline
Member Joined 7y
Original Weapons Code
Arkshine
HUD Sprite Code
MeRcyLeZZ
Price Mechanic
HamletEagle
Optimization, Mentor
edon1337
Optimization
SKINS
saseky avatar Cell 1 Flag
Cell 1
saseky avatar Offline
Cell 1 Flag Affiliation: Cell 1
Member Joined 2y
38,744 points Ranked 106th
39 medals 5 legendary 9 rare
  • Submitted 100 Skins Medal icon
  • Returned 5000 times Medal icon
  • Reached 100 subscribers Medal icon
  • 30 submissions featured Medal icon
  • Received thanks 500 times Medal icon
  • Received thanks 50 times Medal icon
Import and Compile
=NIGHT-WOLF= avatar CS:GO Ports Flag
CS:GO Ports
CS:GO Ports Flag Affiliation: CS:GO Ports
Member Joined 3y
1,262 points Ranked 3676th
10 medals 1 rare
  • Returned 1000 times Medal icon
  • One month a member Medal icon
  • 6 months a member Medal icon
  • Became a Studio Leader Medal icon
  • 1 year a member Medal icon
  • Reached 1,000 Points Medal icon
Replaced M4A4 with M4A1-S
FunnkyHD avatar CS:GO Ports Flag
CS:GO Ports
FunnkyHD avatar Offline
CS:GO Ports Flag Affiliation: CS:GO Ports
Member Joined 2y
4,803 points Ranked 954th
22 medals 1 legendary 5 rare
  • 30 submissions featured Medal icon
  • 10 submissions featured Medal icon
  • Returned 1000 times Medal icon
  • Received thanks 50 times Medal icon
  • Reached 50 subscribers Medal icon
  • Submitted 50 Skins Medal icon
Additional Textures
HUD Sprites
[Kokorov] avatar
[Kokorov] avatar Offline
Member Joined 5y
42 medals 3 legendary 6 rare
  • Submitted 60 Sprites Medal icon
  • Returned 5000 times Medal icon
  • Submitted 60 Effects Medal icon
  • 3rd Place - Winter Textures Contest Medal icon
  • Received thanks 50 times Medal icon
  • Submitted 30 Sprites Medal icon
Sprites
And...
hellmonja avatar CS:GO Ports Flag
CS:GO Ports
hellmonja avatar Offline
CS:GO Ports Flag Affiliation: CS:GO Ports
Member Joined 2y
287 points Ranked 13280th
28 medals 5 rare
  • Received thanks 50 times Medal icon
  • Returned 1000 times Medal icon
  • Thanked 50 submitters Medal icon
  • 10 submissions featured Medal icon
  • Reached 50 subscribers Medal icon
  • One month a member Medal icon
The Machine-- sort of...

Submitter

hellmonja avatar
hellmonja avatar Banned
CS:GO Ports Flag Affiliation: CS:GO Ports
Member Joined 2y
287 points Ranked 13280th
28 medals 5 rare
  • Received thanks 50 times Medal icon
  • Returned 1000 times Medal icon
  • Thanked 50 submitters Medal icon
  • 10 submissions featured Medal icon
  • Reached 50 subscribers Medal icon
  • One month a member Medal icon

hellmonja avatar
hellmonja
CS:GO Ports Flag
CS:GO Ports

Creator
Send a Private Message to the submitter

Stats

Posts
38
Views
4,298
Downloads
1,337
Date Added
2mo
Date Modified
1mo
Date Updated
1mo

Rating

10/10 by 3 raters

DevNotes

v3.0
Improved swapping p_models of un/silenced M4A1-S. Slightly reduced M4A4's rate of fire. Fixed the inspect functions, improved restriction of rounds to 20/40 (though still a bit flawed), M4A4 now has ejecting shells and cleaned some unnecessary codes.

Apart from the code, replaced M4A4 HUD sprites with a proper unsilenced one, as well as the kill icon and fixed muzzle flashes of p_models..

Development

More from Submitter

WiPs by Submitter

More from Studio

WiPs by Studio