Garry's Mod

Garry's Mod

888 평점
[TTT/2] M4 SLAM (Tripmine + Remote C4)
   
어워드
즐겨찾기
즐겨찾기됨
즐겨찾기 해제
Content Type: Addon
Addon Tags: Fun, Realism
파일 크기
게시일
업데이트일
39.692 KB
2014년 4월 28일 오전 7시 11분
2020년 7월 5일 오후 5시 59분
변경 사항 30개 ( 보기 )

다운로드 위해 구독하기
[TTT/2] M4 SLAM (Tripmine + Remote C4)

Zaratusa님의 1 모음집
[TTT/2] Equipment Collection
아이템 22개
설명
NOTICE: This Addon only works for the "Trouble in Terrorist Town" and "Trouble in Terrorist Town 2" - Gamemodes. This weapon will not show up in sandbox mode. It's already included by default under "Half-Life 2" Category.

Features
The M4 Selectable Lightweight Attack Munition is a buyable mine for Traitors, with two modes: Detonate mode, where you can manually detonate the mine. When you place the mine on a wall, the Tripmine mode gets activated and everyone who crosses the red laser, will detonate the mine. After a Traitor placed a mine, every Traitor gets a warning symbol on the position of the mine, just like C4.

Everyone who placed a mine, can pick it up again with the use key (Default: E). The mine is defuseable with the Defuser in both modes. After defusing the mine, it can be picked up and placed again by everyone. The mine can also be shot and destroyed by everyone.

The Laser of a Tripmine is just slightly visible to everyone who don't have a Defuser or is a Traitor.

Type: Equip1
Ammo: None
Magazine: 2/5

Includes an individual .vmt and .vtf weapon icon.



ConVars
# Amount of SLAM's you receive, when you buy a SLAM. ttt_slam_bought [1..n] (default: 2) # Maximum amount of SLAM's you can carry. ttt_slam_max [1..n] (default: 5) # Can you buy the M4 SLAM only once? ttt_slam_limited_stock [0/1] (default: 1) # When should the M4 SLAM explode in tripmine mode? ttt_slam_tripmine_explosion_mode [0..2] (default: 0) # 0: when any player crosses the beam # 1: when any non traitor crosses the beam # 2: when any non team mate crosses the beam # How visible is the laser beam of the SLAM for innocents? # It's always size 5 for traitors and detectives with a defuser. ttt_slam_beamsize [1..5] (default: 2)

Note: After changing these values, except for the beam size, you have to restart your map/server.

Server Infos
Add it to your server by following this guide: Workshop for Dedicated Servers[wiki.facepunch.com]
You can add "slam_name", "slam_desc", "slam_full" and "slam_disarmed" to your translation file, to translate this addon.

Source
The whole source code can be found on GitHub[github.com], feel free to contribute.

Thanks for reading, enjoy and have fun!
인기 토론 모두 보기(1)
1
2020년 1월 18일 오전 8시 25분
The slam laser, can activated by traitor.
Miata
댓글 55
Bazinga 2024년 5월 19일 오후 8시 08분 
Sorry, ik it's a old addon, but, could you tell me how to decrease the radius of the slam? It's too high, and sometimes I die throwing it at an innocent and exploding it, if you could tell me, it would help a lot, I've searched the shared.lua but couldn't find anything that represents the radius.
SvveetMavis 2024년 2월 23일 오후 2시 41분 
would it be possible for you to change the default viewmodel to "models/weapons/c_slam.mdl"

this would make it work with playermodel hands.

I've uploaded a version of this with that change already in place unlisted to the workshop but it would be 10x better if you just made the change.

https://steamcommunity.com/sharedfiles/filedetails/?id=3166882601
Motorolª 2021년 11월 6일 오후 3시 48분 
Could you add a convar to toggle if it can be thrown or not? I tried it with some friends and found it to be too OP, as it could be used to insta-kill everyone with little effort. It's still a good mod tho.
Sprucelass 2020년 7월 5일 오후 8시 34분 
Cool! Thanks you!
Zaratusa  [작성자] 2020년 7월 5일 오후 6시 00분 
@Spruce I've added a ConVar for it!
Luingar 2020년 1월 30일 오후 7시 28분 
Please add an option for arm delay in seconds. Adding a delay of 5 seconds would make it more balanced for our server. The default can be 0 or .25 (whatever the default is), but we'd appreciate a setting to set the delay before arming for the satchel and tripwire modes
Sprucelass 2020년 1월 8일 오후 5시 25분 
Is there a way to make it purchasable multiple times?
RazeDevastator 2018년 6월 20일 오후 3시 29분 
This addon is really cool, but it'd be amazing if you could make a version for sandbox mode....

"This weapon will not show up in sandbox mode. It's already included by default under "Half-Life 2" Category."

Yes, this statement is true, but yours obviously has other features that the sandbox one does not... namely changing beam size and controlling the amount of SLAMs each player can hold.

If you'd rather not, then can you please send me the original lua code for weapon_slam.lua that is already built into the game? Or could you tell me where I could find it? Thanks in advance! :)
Chai 2018년 3월 9일 오후 1시 49분 
I dunno man, C4 is pretty useless too, innocents can just walk away safely! Oh and don't even mention that if you—the traitor—want on the C4, you'll die!
NΞRVŦISϾH 2018년 1월 26일 오전 9시 37분 
Fucking USELESS!
-You could activate it yourself, AND die!
-Innocents can shot them, wich makes them Useless....
So why would you install it???? I DONT FUCKING KNOW!!! :steamfacepalm: