Garry's Mod

Garry's Mod

Ocen: 241
Weapon Information System
   
Przyznaj nagrodę
Ulubione
Ulubione
Usuń z ulubionych
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Realism
Rozmiar pliku
Zamieszczono
Zaktualizowano
2.270 KB
22 stycznia 2014 o 16:19
28 stycznia 2014 o 8:17
Listy zmian: 5 ( zobacz )

Zasubskrybuj, aby pobrać
Weapon Information System

Opis
The Weapon Information System is an addon that displays information about the weapon and ammo on the ground (available to be picked up) when you look at it.

Source code on GitHub: WeaponInformationSystem[github.com]

If you like it please leave an up vote, so that other people can see it too.

Inspired by TTT Weapon Info created by Wolf Halez and available as paid stuff :( on CoderHire.
The Weapon Information System is not a source code copy of the TTT Weapon Info, I analysed how it works an built my own version from scratch and added some other features to make it better.

This is useful to compare weapons caracteristics and to know which is the ammo it uses.

Status: Currently working to make it work on DarkRP as well.

Informations displayed when you look at weapons:
- Name
- Damage
- Clip size
- If it is automatic
- Shot's spread
- Recoil
- Ammo type/name

Information displayed when you look at ammunitions:
- Name
- If the weapon you're holding uses the ammo you're looking at, the box that surrounds the ammo name will be green.

It will work only TTT as it allows you to pick up weapons and ammo from the ground and that treat those as weapons and ammos (code-side stuff). I'm currently trying to make it work with DarkRP, but it treats weapons and ammos differently, so don't take any hopes.

If you have any suggestions about something that should be added or about any information about problems with it, please consider creating a new thread in the discussion area.

Sorry about the grammar, I'm not a native and good english speaker. Please correct me about any mistakes.
Komentarzy: 44
Korsica Enjoyer 20 lipca 2018 o 7:55 
when i look at most guns, the game breaks.
Jayfeather 3 lutego 2017 o 19:25 
When i look at some guns. the world goes see through.
kebokyo 3 marca 2015 o 17:21 
The question everyone wants to know:
Will it work with any custom weapon?
Phantom 14 grudnia 2014 o 0:09 
is this client side of does it need to be on the server too?
Erza 25 lipca 2014 o 16:56 
@TehAngel i spent 7 hours today to figure out what was wrong with my server and it was this addon can cannot work with any guns that i have. It caused player item slots to disappear with broken gun errors.

[Weapon Information System] lua/cl_weapon_information.lua:117: attempt to compare number with nil
1. v - lua/cl_weapon_information.lua:117
2. unknown - lua/includes/modules/hook.lua:84
Lykrast 1 lipca 2014 o 14:13 
I have a suggestion : replace the Automatic : true/false line by something indicating the fire delay. All base TTT weapons are automatics, and knowing the firerate is actually really something useful. Also, if possible, a way to know the number of bullets shot by shotguns (like if it's more than 1, it says something like x6 or x8 next to the damage).
Scardigne 6 maja 2014 o 4:44 
So no darkrp update?
Scardigne 20 marca 2014 o 6:06 
Thanks for the notification C:
Zignd  [autor] 19 marca 2014 o 18:42 
@Scardigne, yes it is and sorry again for all that time and no update. To tell you the true I'm very busy those days with tests (university) and work (job), but last weekend I did some progress and it's almost working, I'm just having some problems with the Title/Weapon Name field at the top, but I did not fixed it yet, because I was really very busy. But, in anyway I will release the DarkRP update this weekend 22/23 and if it does not you can call me a bitch or something like that.
Scardigne 19 marca 2014 o 7:18 
Is the darkrp update still in development? it would be a shame to stop here..