Garry's Mod

Garry's Mod

7,091 ratings
Black Ops 2 Tactical Insertion (Sandbox) (2024 Update)
2
4
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Weapon
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
2.192 MB
3 Oct, 2014 @ 9:08pm
18 Dec @ 10:51am
27 Change Notes ( view )

Subscribe to download
Black Ops 2 Tactical Insertion (Sandbox) (2024 Update)

Description
This is the Tactical Insertion ported from Black Ops II.

Before asking questions in the comments, check if it's answered in the FAQ!

Server owners can use "resource.AddWorkshop("322038989") to download files to clients

Usage:

Sandbox
In Sandbox, simply go to the CoD Multiplayer tab in the weapons menu, and give it to yourself. Hold left click to pull out the insertion, and let go to drop it.

What it does
It allows you to set your spawn point using a device. When you die, you will respawn at the tactical insertion. It can be broken if you damage it, or picked up by interacting. Spawning a second one replaces the first one.

CVars:
"Tac_RespawnLimit" (default 0)
"Tac_Infinite" (default 0)
"Tac_AllowUndo" (default 1)
"Tac_HasHealth" (default 1)

FAQ

Q: C_Arms?
A: Yes

Q: Can you pick it up?
A: Yep! When a player interacts with their own insertion, it gives it back to them. If they already have one, it destroys it.

Q: How can I limit the amount of respawns an insertion has?
A: You can use the "Tac_RespawnLimit" cvar (default 0) to limit the respawn count

Q: Can I change something in the code and reupload my own version?
A: No. The code is my own and thus protected under copyright.

Devs: To add a check if the player has a Tac active, just check the ply.Tacs variable (a table). The PlayerSpawn hook for the Tac addon runs first.

Credits:
Treyarch - Models & Animation
Myself - Porting, coding, etc
177 Comments
Helios 17 Dec @ 2:33pm 
Unfortunately it did not work. Players still are sent to tac insert when revived.
Helios 17 Dec @ 2:06pm 
Omg, a dev who listens to feedback, colour me impressed friend!
Hoff  [author] 17 Dec @ 11:23am 
Updated! Thanks for the suggestion
Helios 11 Dec @ 6:59pm 
It is "[NCS] Defibrillator" on Steam Workshop.
Hoff  [author] 11 Dec @ 10:01am 
Do you have the lua file for the defib so I can see how their system works?
Helios 9 Nov @ 12:54am 
Anyway to make this so it doesnt overwrite defibs in darkrp derived gamemodes? Sucks to put tac insert down far away during event just to get revived 10 minutes away.
Hoff  [author] 21 Aug @ 9:57am 
Fixed now, thanks!
NNinja1255 19 Aug @ 2:55pm 
Same here:

[Black Ops 2 Tactical Insertion (Sandbox) (2024 Update)] lua/weapons/seal6-tac-insert/shared.lua:131: Tried to use a NULL entity!
1. GetOwner - [C]:-1
2. unknown - lua/weapons/seal6-tac-insert/shared.lua:131

Timer Failed! [Simple][@lua/weapons/seal6-tac-insert/shared.lua (line 130)]

First error occurs when picking up the tactical insertion, this one here happens when you are killed while in the animation of placing one down.
NNinja1255 19 Aug @ 1:58pm 
I've gotten this error:

[Black Ops 2 Tactical Insertion (Sandbox) (2024 Update)] lua/entities/cod-tac-insert/init.lua:97: Tried to use a NULL entity!
1. GetNWString - [C]:-1
2. unknown - lua/entities/cod-tac-insert/init.lua:97

Timer Failed! [Simple][@lua/entities/cod-tac-insert/init.lua (line 83)]

Kind of a nothing error since it doesn't break anything, but probably a good idea to add a check or something.
Hoff  [author] 16 Aug @ 6:13pm 
Thanks!