Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

How can I remove muzzleflash of any gun? - A Forum Thread for Counter-Strike: Source

Yo, so recently while playing CSS the muzzle flash has become really annoying. I saw that in some silenced skin, its removed which is super nice. I would really like if you guys could tell me how to remove muzzle flash from any gun?
Now something to notice, I have literally 0 experience with doing stuff like this, i dont even know any ancronyms or stuff haha, so please if you can, make it simple xd
Sign up to access this!
  • Ganryu avatar
    Ganryu username pic Joined 11y ago
    Helpful Toastie Ripe Supporter Admin
    There.
    30,834 points Ranked 169th
    40 medals 6 legendary 10 rare
    • 15+ Entries! GameBanana’s Christmas Giveaway 2015 Medal icon
    • Achieved Admin clearance Medal icon
    • Returned 5000 times Medal icon
    • Became a Ripe Supporter Medal icon
    • 10 years a member Medal icon
    • Reached 100 subscribers Medal icon
    Ganryu avatar
    Ganryu
    Helpful Toastie
    9mo
    Either replace the muzzleflash sprite with a texture that has the alpha channel completely blacked out (rendering it invisible), or decompile the skin in question and recompile it without the muzzleflash attachment.
    • Helpful x 1
    • Agree x 1
    Rev up those G-Diffusers.
    URL to post:
  • rsz avatar
    rsz Joined 2y ago
    Offline
    1,592 points Ranked 22,484th
    6 medals 1 rare
    • Returned 1000 times Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    • Returned 100 times Medal icon
    • 1 year a member Medal icon
    • Reached 1,000 Points Medal icon
    9mo
    Go to main weapon ...Scripts... directory or custom directory..(where is your weapon script located)

    example-open the script file weapon_ak47.. in wordpad or other editor...then you will see there all weapon features etc

     Find line

    "MuzzleFlashScale" "1.6" (there could be set any other numbers, bigger number makes bigger size of muzzle) ....simply set line to "MuzzleFlashScale" "0"  then save file and everything should work very fine :)
    if you also have this line there,

    "MuzzleFlashStyle"  "CS_MUZZLEFLASH_X"
    just simply ignore it  ....or you can also remove it from file ..this line will not make any effect ingame..

    i hope this helped :)
    Bananite
    URL to post:
  • TheZombieDon avatar
    TheZombieDon username pic Joined 3y ago
    I'm sleeping
    3,333 points Ranked 2,878th
    27 medals 4 legendary 4 rare
    • 30 submissions featured Medal icon
    • 2019 Top Contributor Medal icon
    • Reached 100 subscribers Medal icon
    • Returned 5000 times Medal icon
    • 10 submissions featured Medal icon
    • Returned 1000 times Medal icon
    9mo
    It should (?) possible, but each of those weapons will have to inherit the properties of either the silenced variant of the USP/M4, or the properties of the TMP (might be possible through the usage of weapon_*.txt files).

    Modifying the 'scale' of the muzzle flash will more than likely not work, as per testing already done by ElysiumLeoSK here. Changing the style to 'none' or removing the line completely might work.

    In my case, I actually had to add the muzzle flash for the TMP (as in-game, the model doesn't have one, and my mod replaces it with the MP9, an un-silenced version.) This was done by adding a line in the weapon_tmp.txt file that changes the muzzle flash style to the default one that can be found on various weapons (not the 'x' style).

    If anything, from a modder's perspective - decompiling and removing the muzzle flash attachment (I think they're on the CS:S models? Not 100% sure) and recompiling it without changing anything else might be the answer to your needs. But doing so will result in them becoming 'custom' models, thus not working on servers with unmodified, restricted sv_pure values.

    Then again, if all of this is wrong, someone correct me, or provide better insight.
    [CS:GO Mod] Creator avatar
    Mantra
    [CS:GO Mod] Creator
    URL to post: