I was wondering how to make all the cts have m4 and deagle.
I was wondering how to make all the cts have m4 and deagle.
You need to create 2 entities:
Gameplayerequip
And Filteractivatorteam (I think that's what its called, I apologize if I'm wrong)
Give the filteractivatorteam a name (perhaps filterct or something) and then set it so that it's just CT's
Then go to the gameplayerequip and get off of smart edit, add a new thing and put in the first box 'weapon_m4a1' and in the second box (Value:) put 1.
Repeat for deagle only weapondeagle (You can put this in the same gameplayer_equip entitie, just add a new thing)
Then parent the gameplayerequip to the filteractivatorteam.
I may be wrong, if so I apologize, but I think that's how you do it...
how do i parent the two
I don't think it's possible to filter a gameplayerequip. What demonsoul said is wrong too. Parenting is just for something to move with something else, for example, a light parented to a lamp prop would move with the lamp if it was knocked around. Simply having a gameplayerequip with knives enabled with give everyone a knife, after which you could put guns around the map, have them drop on the spawn points, or just have a buyzone. If you don't have the custom FGD, then to add a knife to the gameplayerequip turn smartedit off and add weapon_knife with a value of 1.
But he only wants the cts to have it so placing them around wouldn't work too well.
And I'm positive entities pick up the trait of that which it is parented to...
I may be wrong, but you are too. =P
How else do you think people would create a rotating gun - Or perhaps a door you can destroy?
You parent that entitie to a brush tied to funcrotate or funcdoor or w/e.
TO answer firefox - You place the name of the filteractivatorteam in the parent field of the gameplayerequip, although again, I don't know if I'm right. I don't see why it shouldn't work, unless there's no parent property for the gameplayerequip.
http://developer.valvesoftware.com/wiki/Parent No I'm not.
gameplayerequips don't even have a parent field, and making one would be pointless.
I'm not sure how well having 2 gameplayerequips works in one map but you could try having one gameplayerequip give everyone the weapons you want the CTs to have, and then have a triggermultiple around the T's spawn, or multiple triggeronce(s), which are triggered to strip the Ts with a "Use Only" gameplayerequip. If you use one triggermultiple instead of loads of triggeronces(at the base of each T spawn point) then you may want to disable it after a certain time.
Ace of Spades
Ace of Spades
Ace of Spades
Team Fortress 2
Counter-Strike: Global Offensive
Team Fortress 2
GameBanana
Team Fortress 2
Team Fortress 2