Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
[Weapon Properties Editor] lua/autorun/lf_weapon_properties_editor.lua:138: attempt to index upvalue 'von' (a nil value)
1. SaveReplacement - lua/autorun/lf_weapon_properties_editor.lua:138
2. func - lua/autorun/lf_weapon_properties_editor.lua:197
3. unknown - lua/includes/extensions/net.lua:323
This addon isn't compatible with replacements, it make replacements useless. For example, you replace hl2 pistol with some other custom weapon, but this addon will make you pick up hl2 pistol anyway.
Picking up a frag grenade doesn't give you anything either, when it should give you 1 grenade.
I'm not sure if I should change this for the pulse rifle. It originally gives you 60 ammo, but since you're blocking it, you want to use it's ammo for a SWEP. It's more realistic that picking up 1 weapon = getting 1 clip. I'll think about it.
The grenades seem to need a workaround. I'll look into it.
I'm sorry, but I don't think I can do something about it. Due to the way hooks work in Garry's Mod, addons which manipulate the same hook won't work together. There can only be one.
In detail: Both addons hook PlayerCanPickupWeapon. If you return a value inside that hook, no further hooks will run. Addon authors have 3 choices here:
return true = Player can pick up the weapon
return false = Player can NOT pick up the weapon. It will also stay on the ground, unless you remove it manually (which I do).
return nil = The next hooks runs. If there is no other hook, the default behavior will occur.
I only return false on Weapon Replacements. That means, other hooks can still run after my addon, but only for pickups which are not replaced.
The Manual Weapon Pickup addon however, needs to return false every time, or it can't block picking up weapons automatically. Now if that addon's hook runs before my addon's hook, then mine wouldn't execute, since the other addons already returns false.
If my hook could run first, it should actually work, since I don't return a value unless it's a replacement. Unfortunately there is no reliable way of changing the order in which addon hooks run.
Would it be possible to get with the creator of the manual pickup mod and with their permission write the code from that mod into yours to engage after your hook?
Hopefully this would help out in fixing(?) this or if it's just scripting being unable to do much.
[Weapon Properties Editor] lua/autorun/lf_weapon_properties_editor.lua:341: attempt to perform arithmetic on field 'RPM' (a nil value)
1. ApplyChanges - lua/autorun/lf_weapon_properties_editor.lua:341
2. func - lua/autorun/lf_weapon_properties_editor.lua:376
3. unknown - lua/includes/extensions/net.lua:32
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=795055947