Garry's Mod

Garry's Mod

219 个评价
MW Base Weapon Drop Replacement Script (world spawns and npc drops randomizer)
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 快乐, 角色扮演, 风景
文件大小
发表于
更新日期
21.955 KB
2022 年 10 月 5 日 上午 6:24
2024 年 3 月 24 日 下午 9:37
16 项改动说明 ( 查看 )

订阅以下载
MW Base Weapon Drop Replacement Script (world spawns and npc drops randomizer)

描述
Enemies drop MW Base weapon corresponding to their held weapon.
Can also change world spawns.



use mgbase_precacheatts 1

Console Commands:
mgbase_npc_drops_randomize 1/0 (default set to 0)
Randomizes npc drop if the npc is already holding an MW base weapon.

mgbase_npc_drops_despawn_time 1-9999
Despawns the converted weapon after a set amount of seconds.

mgbase_convert_world_weapons 1/0
Replaces weapons spawned by the map.

mgbase_convert_world_weapons_delay 0-60
Delays the process of converting weapons.

mgbase_npc_drops_convert_to_mgbase 1/0

mgbase_npc_drops_convert_to_mgbase_randomize_atts 1/0

mgbase_npc_drops_convert_to_mgbase_method ON_KILLED / ON_CREATION
ON_KILLED means the weapon entity is created on kill, creating lag on every kill.
ON_CREATION means the weapon entity is created alongside the npc entity, creating lag when an npc is spawned. (mass lag on maps with large amounts of npcs)

mgbase_npc_drops_convert_to_mgbase_delayed_generate 1/0
When using ON_CREATION, every time an npc is created, set a 1 second delay that renews itself for every npc creation below 1 second, after npcs stopped spawning, start generating an MW base weapon on every spawned npc one by one with a delay. This will show progress of the entities spawning rather than just simply being frozen.


mgbase_npc_drops_cleanup_weapons
Removes all MW base weapons on the map.

mgbase_npc_drops_recreate_tables
In case NPCs aren't dropping weapons this might fix it.


If you want to donate:
[sociabuzz.com]it'd be very much appreciated and a huge motivation booster.

if you're interested in a personalized addon / want features added to a preexisting addon:
[forms.gle]

I've made lots of other addons, maybe you'd find something interesting...


For questions, news, updates, etc: Discord[discord.gg]

96 条留言
Motloop 6 月 1 日 上午 4:12 
Can you make it for arc9?
Omarb10legends 2024 年 4 月 22 日 下午 6:30 
hmm, well wouldn't those addons interfere with this?
Froze  [作者] 2024 年 4 月 22 日 下午 4:18 
mmm i think there's already a total replacer addon
Omarb10legends 2024 年 4 月 22 日 下午 3:36 
One more thing I wanted to add, but have you every considered expanding this addon? Making it so like you can choose what weapons from any swep can be dropped, and what class they would fall into?

Not requesting, just a random idea. That will be on the drawing board.
Froze  [作者] 2024 年 3 月 25 日 下午 4:49 
@Omarb10 will consider
@Crafty_ will look into this
Clefable_Recon ʕ º ᴥ ºʔ 2024 年 3 月 25 日 下午 4:07 
is it still normal for dropped guns to have incorrect type? Like an SMG1 is dropped as AR; pistol dropped as SMG
Omarb10legends 2024 年 3 月 25 日 上午 6:30 
I meant to say small chance, not smaller as they of course don't drop
Omarb10legends 2024 年 3 月 25 日 上午 6:29 
Froze I do have a question, do you think there would be a chance you could incorporate a chance that lmgs, or snipers have a smaller chance of spawning when dropped? It's something I've noticed that never drops for the time I've used this addon.


No i'm not demanding it, just asking if it's a possibility. Forgive me if it comes off annoying
Froze  [作者] 2024 年 3 月 24 日 下午 9:38 
fixed
tysm for reporting this bug has been in the addon since forever unnoticed hahaha
Froze  [作者] 2024 年 3 月 24 日 下午 9:16 
will look into this