Garry's Mod

Garry's Mod

评价数不足
[TTT2] gWeather Support [ADDON]
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 服务器内容
插件标签: 快乐, 角色扮演, 风景
文件大小
发表于
更新日期
11.082 KB
3 月 7 日 上午 7:48
4 月 13 日 上午 6:13
4 项改动说明 ( 查看 )

订阅以下载
[TTT2] gWeather Support [ADDON]

描述
Great, first traitors, now we're stuck in a sandstorm? What's next, acid rain?

You have to use TTT2 in order to use this addon. Additionally using ULX for TTT2 is recommended. Report bugs concerning this addon here[github.com].

DISCLAIMER! This is an unofficial addon, I do not have any ties to gWeather. I just enjoyed the mod and wanted to create a fun addon that brought it to TTT2! No assets were used in the creation of this addon, it's just pure code!

Discord: https://discord.gg/9njYXGY
Source: https://github.com/milkwxter/TTT2gWeatherSupport



Anyways, this addon will add tons of new weathers to your TTT2 matches (41 different weathers to be exact). Certain weathers will promote new kinds of gameplay, so watch as your players adapt and create new strategies.

Snow and dust storms might take over a round, leaving people confused about what is happening far away since they can't see far. Can a traitorous player use this to his advantage and kill people in what used to be open areas?

What about a hurricane? One round a hurricane might spawn, flinging props around and making it hard to move outside. A traitor could catch someone moving from one building to the next with a sniper rifle since they will be slowed down by the winds!

Sometimes the round will happen as normal, as simple clouds roll in, giving everyone a nice break from the crazy weather!




Convars are variables that are introduced to allow server owners to customize the gameplay without changing the code.

I have implemented all the base gWeather convars and my two custom convars into the admin F1 menu under the Server Addons menu. There are also buttons to remove the weather from the round (resetting it to the map default) and another button to add a new weather (only one weather at a time though).

# percent chance each round to have a random weather ttt2_cv_gweather_chance [0.0..1.0] (default 1.0) # the maximum tier of weather that can spawn. higher tiers = crazier weather ttt2_cv_gweather_max_tier[1..6] (default 6)

--
Credits
milkwater: Coding
Jimmywells, Lessrian, Hectic, & dr dope: gWeather
7 条留言
faye 8 月 17 日 上午 1:36 
found it thanks
milkwater  [作者] 8 月 16 日 下午 10:17 
faye, Thanks for the comment! Yes you can change the weather live, you must be an admin though.

Open the F1 menu and navigate to Server Addons, then open the gWeather support tab. Once you are there you can delete the current weather using the handy button, and then add a new random one! Sadly I never coded a way to change to a specific weather on command but the source code is linked in the description if anyone wants to do it lol
faye 8 月 16 日 下午 6:54 
this is awesome! is there a command to change the weather live? or does it require a map change
Nicko 4 月 13 日 下午 12:49 
Awesome, thanks so much!
milkwater  [作者] 4 月 13 日 上午 6:16 
Nicko, I have identified the issue and fixed it.

Thank you for the bug report! I can confirm it will work properly now!
Nicko 4 月 12 日 下午 10:48 
Hey, I really like the addon, but it seems like the gweather chance command is not working. I'm getting weather effects every round despite the percent.
MrXonte 3 月 7 日 上午 8:26 
awesome!