[?] Mini-Sentry?

Discussion in 'Mapping Questions & Discussion' started by PootisSpencer, Nov 28, 2011.

  1. PootisSpencer

    PootisSpencer L1: Registered

    Messages:
    11
    Positive Ratings:
    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?
     
  2. English Mobster

    English Mobster L6: Sharp Member

    Messages:
    355
    Positive Ratings:
    224
    I would post this in the "Mapping and Tutorials" section.
    That's more for posts about questions relating to mapping. This is for people requesting models and whatnot.
     
  3. Loc_n_lol

    Loc_n_lol L10: Glamorous Member

    Messages:
    726
    Positive Ratings:
    273
    I don't think that's currently possible to specify this from a map file.
     
  4. PootisSpencer

    PootisSpencer L1: Registered

    Messages:
    11
    Positive Ratings:
    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? ;)
     
    • Thanks Thanks x 1