[?] Mini-Sentry?

PootisSpencer

L1: Registered
Nov 28, 2011
11
3
Hi, I'm new. I just learned Hammer 1 month ago and I've been fooling around with it since.

I know I can place an entity obj_sentrygun on the map, but I want the mini-sentry on a map. how would I go about adding it?
 

PootisSpencer

L1: Registered
Nov 28, 2011
11
3
Well, I still haven't figured it out (entirely) but I did find a way to "fake" it.

tf2_minisentry.fgd
Code:
@AutoVisGroup = "Custom"
[
	"Game Logic"
	[
		"obj_minisentry"
	]
]

@PointClass base(Targetname,Parentname,BaseObject,Angles) studio("models/buildables/sentry1.mdl") = obj_minisentry : 
	"TF2 Mini-Sentry" 
[
	defaultupgrade(choices) : "Starting Upgrade Level" : 0 =
	[
		0 : "Level 1"
		//1 : "Level 2"
		//2 : "Level 3"	
	]



	Skin(choices) : "Skin Color" : 2 : "I don't know why setting the team won't change the model color, so use this instead." =
	[
		2: "Red"
		3: "Blue"
	]

	spawnflags(flags) = 
	[
		2: "Invulnerable" : 0
		8: "Infinite Ammo" : 0
	]

	// Outputs
	output OnDestroyed(void) : "Fired when this entity is destroyed."

	// Inputs
	input Skin(integer) : "Sets the skin color; used in conjunction with SetTeam (2=Red Mini, 3=Blu Mini)"
]

the cons of this is, the little beacon light is missing from the top and setting the team won't change the skin color so I had to add an extra parameter and input.

not bad for a noobie, eh? ;)