Garry's Mod

Garry's Mod

30 个评价
TTT Golden Gun (D Weapon) for Custom Roles
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 服务器内容
文件大小
发表于
更新日期
5.061 MB
2020 年 4 月 10 日 上午 9:55
5 月 3 日 下午 6:32
29 项改动说明 ( 查看 )

订阅以下载
TTT Golden Gun (D Weapon) for Custom Roles

描述
Thanks to Jenssons for the original version of this mod.

Edits (and replaces) the original version to add compatibility with Custom Roles for TTT

This Golden Deagle has 2 bullets (by default) when purchased but will automatically empty itself when you successfully hit a player. That means you have 2 (by default) chances to hit at most one time.

ConVars
ttt_gdeagle_ammo 2 // The amount of ammunition the gun should have by default ttt_gdeagle_simplified 0 // Whether the simplified shoot logic should be used ttt_gdeagle_killer_damage 35 // The amount of damage the shooter and target Killer take ttt_gdeagle_vampire_heal 50 // The amount of health the target Vampire will regain if they are damaged ttt_gdeagle_vampire_overheal 25 // The amount of health the target Vampire will be over-healed to if they are healthy. For example, if they are already at 100 health, they will increase to 125 instead.

What Happens When Each Role is Shot
This only applies when ttt_gdeagle_simplified is 0.

Phantom
The shooter is set on fire for 5 seconds.

Killer
Both the shooter and the target lose a configurable amount of health (see ttt_gdeagle_killer_damage ConVar).

Zombie
The shooter is turned into a Zombie thrall.

Vampire
The shooter is killed instantly and turned into a pile of bones. The vampire is healed by a configurable amount (see ttt_gdeagle_vampire_heal ConVar) if they are hurt or over-healed by a configurable amount (see ttt_gdeagle_vampire_overheal ConVar) if they are already healthy.

Drunk
The drunk instantly sobers up and remembers what their role is.

Bodysnatcher
The bodysnatcher switches roles (and role weapons) with the player who shot them

Beggar
The beggar joins the opposite team of the player who shot them (or a random team if shot by a Jester or Independent)

Traitor Team
The target is killed instantly.

Innocent Team
The shooter is killed instantly.

Jester Team
Both the shooter and the target are killed instantly. The Jester does not win the round.

Independent Team
Set the shooter's health to the target's health, if it's less than 100. Then restore the target's max health to at least 100 and fully heal them.

Monster Team (Other than Zombie and Vampire)
Set's the shooter's role to be the same as the target's role

What Happens When Each Role is Shot (Simplified)
This only applies when ttt_gdeagle_simplified is 1.

Traitor Team
The target is killed instantly.

Innocent Team
The shooter is killed instantly.

Monster Team
The target is killed instantly.

Independent Team
The target is killed instantly.

Jester Team
Nothing happens.

Special Thanks:
  • Jenssons for the original version of this mod
  • Silky for the code used to create the pile of bones after the Vampire is shot taken from the 'TTT Traitor Weapon Evolve' mod
  • Jarren from Achievement Hunter for the idea for the gun having 2 bullets but draining remaining ammo when you hit a player
  • The Stig for adding convars for ammo count and simplified shoot logic

Source Code:
https://github.com/Malivil/TTT-Golden-Gun
7 条留言
Malivil  [作者] 2021 年 6 月 29 日 上午 6:52 
I have updated the dependencies of this to point to the new Custom Roles for TTT because it is the new standard Custom Roles for TTT version.
Malivil  [作者] 2020 年 9 月 4 日 上午 4:39 
All of my addons are replacements
MBgov1133 2020 年 9 月 4 日 上午 4:36 
Do I need the original golden gun installed for this to work, or does it replace it like most of your other addons?
BinaryChaos 2020 年 7 月 22 日 下午 6:34 
Haha that's what I thought xD
DUDE you fixed this literally within an hour you are the beeest!
Malivil  [作者] 2020 年 7 月 22 日 下午 5:00 
Would you believe me if I told you I never miss and that's why I didn't know about that error?
Really, though, thanks for report it! It should be fixed in the new version.
BinaryChaos 2020 年 7 月 22 日 下午 3:51 
This mod is great! but if you miss and hit anything that isn't a player (like the map) it sends an error in the server
"attempt to call global 'SendFullStateUpdate' (a nil value)"
Loken05 2020 年 5 月 1 日 上午 11:24 
good