Garry's Mod

Garry's Mod

9,545 ratings
AutoIcons - weapon select & kill icon generator
21
17
38
3
21
5
9
16
3
5
9
4
7
3
3
5
4
2
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Weapon
Addon Tags: Roleplay, Realism
File Size
Posted
Updated
35.371 KB
22 May, 2021 @ 10:33pm
6 Jul, 2023 @ 8:56pm
24 Change Notes ( view )

Subscribe to download
AutoIcons - weapon select & kill icon generator

Description
This addon will automatically make weapon select icons and killicons matching the vanilla HL2 styles very closely.

This addon will make all SWEPs look like HL2 weapons in the weapon selector. By default it will replace all weapon selection icons to create a more uniform style, but you can disable this with autoicons_replaceall 0 in which case only SWEPs with the default icon will be replaced.

HOW TO USE:
Subscribe to it.

If you're making a SWEP and you don't like the default orientation AutoIcons uses for it (which suits the vast majority of SWEPs), you can set SWEP.AutoIconAngle to change it.

I originally made this for my server[swamp.sv] where we have a lot of custom SWEPs with no icons since they are a hassle to make, but decided to make it public since most SWEPs come with icons that don't look good.

IF YOU GET ANY ERRORS JUST COPY AND PASTE THE WHOLE ERROR INTO THE COMMENTS

GITHUB IF YOU WANT TO CONTRIBUTE: https://github.com/swampservers/autoicons
Popular Discussions View All (14)
104
4 Aug @ 4:03am
PINNED: Non-working weapons report
Joker Gaming
31
16 Oct @ 4:07pm
Bug Report.
TheBillinator3000
9
24 Nov @ 2:49am
TUTORIAL FOR CHANGING COLOR OF WEAPON SELECT ICONS
jini xoxo ♡
601 Comments
BOT Tux 5 Dec @ 6:14am 
I am quite curious to how it works. My only guess is that it pulls the model and takes a screenshot of it's side profile, and does some fancy-schmancy photoshop editing magic to make it look like a HL2 icon
midnightZer0 26 Nov @ 11:57pm 
How does the mod generate an icon of a weapon?
MythsList 21 Nov @ 5:27pm 
I noticed since the addon didn't manage to generate an icon, the placeholder model just stays there in the origin point of the map
MythsList 21 Nov @ 4:14pm 
I'm making my first SWEP right now and for some reason it breaks this addon.

[AutoIcons - weapon select & kill icon generator] lua/autorun/client/autoicon.lua:447: attempt to index local 'e' (a nil value)
1. GetIcon - lua/autorun/client/autoicon.lua:447
2. DrawWeaponSelection - lua/autorun/client/autoicon.lua:932
3. unknown - lua/autorun/client/autoicon.lua:960 (x222)

The 'e' argument seems to refer to the 'tall' variable from the DrawWeaponSelection function. Could I receive help please?
Mumbles 15 Nov @ 12:09pm 
thank you!
MidnightGamer 15 Nov @ 2:24am 
you have to manually edit the addon
Mumbles 14 Nov @ 8:35pm 
is there a way to change how the color of the generated icon?
turkeymaster 20 Oct @ 7:10am 
kill icons dont work :(
MidnightGamer 17 Oct @ 3:09pm 
i wish this could replace the physics gun weapon select icon with the gravity gun's because they both have the same model just with different textures (also for consistency because i dont think other weapons have that problem)