Garry's Mod

Garry's Mod

评价数不足
[TTT] Rearming Base
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 服务器内容
插件标签: 快乐
文件大小
发表于
更新日期
7.353 KB
2021 年 9 月 13 日 下午 4:58
2024 年 5 月 20 日 上午 6:01
3 项改动说明 ( 查看 )

订阅以下载
[TTT] Rearming Base

在 Spaazington 的 1 个合集中
Maps Rearmed for TTT
27 件物品
描述
TL;DR
this is simply required to run the following addon or future addons like this server-side: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2601478822

Description
This is a modified version of a script included in ttt used to run rearm scrips generated by the weapon placer: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=119928922&searchtext=weapon+placer. The main difference is that this reads lua files that can be uploaded to the workshop instead of txt files which cannot be uploaded

For People who want to upload rearm scripts:
All you need to do to convert a regular rearm script is rename the extension to ".lua" instead of ".txt" add "--[[" on a separate line at the beginning of the file and "--]]" on a separate line at the end and change the file location to "lua/maps" instead of "maps". Now you can upload rearm scripts to the workshop and add this addon as well as any map addons needed as requirements.

ConVar
use console variable: ttt_use_weapon_spawn_scripts_lua to turn on or off

git:
https://github.com/spaaz/ttt_rearming_base
热门讨论 查看全部(1)
0
2021 年 9 月 13 日 下午 8:32
Feedback/Bugs
Spaazington
5 条留言
Spaazington  [作者] 2023 年 4 月 8 日 下午 7:38 
I'll look into it in the future
dhkatz 2023 年 4 月 8 日 上午 2:28 
Ok it seems that the The Stig's Floor Weapon spawner actually supplemented those missing functions itself so you could probably do that as well
dhkatz 2023 年 4 月 8 日 上午 2:25 
I was able to fix the error by replacing ent:Remove() with SafeRemoveEntityDelayed(ent, 0).

There were also errors involving ents.TTT.GetSpawnableAmmo and ents.TTT.GetSpawnableSWEPs (does not seem to exist in TTT2), but adding isfunction checks and skipping those loops didn't seem to break anything in TTT2, weapons were spawning

Also SpawnWillingPlayers does not exist in TTT2 so adding an isfunction check there too fixed the error
dhkatz 2023 年 4 月 8 日 上午 1:56 
Not sure if TTT2 specific but getting this error:

Lua Error: [[TTT] Rearming Base] lua/autorun/ttt_rearming_base.lua:111: attempt to call method 'Remove' (a nil value) 1. RemoveSpawnEntities - lua/autorun/ttt_rearming_base.lua:111 2. fn - lua/autorun/ttt_rearming_base.lua:219 3. Run - lua/ulib/shared/hook.lua:109 4. unknown - gamemodes/terrortown/gamemode/server/sv_main.lua:1064
dhkatz 2023 年 4 月 8 日 上午 1:45 
Does this work with TTT2?