Garry's Mod

Garry's Mod

246 个评价
Weapon Information System
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 快乐, 写实
文件大小
发表于
更新日期
2.270 KB
2014 年 1 月 22 日 下午 4:19
2014 年 1 月 28 日 上午 8:17
5 项改动说明 ( 查看 )

订阅以下载
Weapon Information System

描述
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.
44 条留言
M16A1 From Girls' Frontline 2018 年 7 月 20 日 上午 7:55 
when i look at most guns, the game breaks.
Jayfeather 2017 年 2 月 3 日 下午 7:25 
When i look at some guns. the world goes see through.
kebokyo 2015 年 3 月 3 日 下午 5:21 
The question everyone wants to know:
Will it work with any custom weapon?
Phantom 2014 年 12 月 14 日 上午 12:09 
is this client side of does it need to be on the server too?
Erza 2014 年 7 月 25 日 下午 4: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 2014 年 7 月 1 日 下午 2: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 2014 年 5 月 6 日 上午 4:44 
So no darkrp update?
Scardigne 2014 年 3 月 20 日 上午 6:06 
Thanks for the notification C:
Zignd  [作者] 2014 年 3 月 19 日 下午 6: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 2014 年 3 月 19 日 上午 7:18 
Is the darkrp update still in development? it would be a shame to stop here..