Cts having guns

By Fir3FoX 4 years ago

I was wondering how to make all the cts have m4 and deagle.

5 posts 288 views
  • You must be a member

Replies

  • Demonsoul's Levels
    • P3: Peasant
      Points: 10,642
    • E2: Guide
      EF: 37
    • C1: Member
    • A5: Veteran
      Account Age: 6 years
    Posted 4 years ago

    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...

    User Title
    Bananite
  • Fir3FoX's Levels
    • C1: Member
    • A5: Veteran
      Account Age: 5 years
    Posted 4 years ago
    Posted by demonsoul1616 You need to create 2 entities: Game_player_equip And Filter_activator_team (I think that's what its called, I apologize if I'm wrong) Give the filter_activator_team a name (perhaps filterct or something) and then set it so that it's just CT's Then go to the game_player_equip 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 weapon_deagle (You can put this in the same game_player_equip entitie, just add a new thing) Then parent the game_player_equip to the filter_activator_team. I may be wrong, if so I apologize, but I think that's how you do it...

    how do i parent the two

    User Title
  • Fibbs's Levels
    • P4: Worker
      Points: 25,104
    • E2: Guide
      EF: 29
    • C2: Treehouse Member
    • A5: Veteran
      Account Age: 5 years
    Username
    Fibbs
    Posted 4 years ago

    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.

  • Demonsoul's Levels
    • P3: Peasant
      Points: 10,642
    • E2: Guide
      EF: 37
    • C1: Member
    • A5: Veteran
      Account Age: 6 years
    Posted 4 years ago
    Posted by Fibbs I don't think it's possible to filter a game_player_equip. 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 game_player_equip 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.

    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.

    User Title
    Bananite
  • Fibbs's Levels
    • P4: Worker
      Points: 25,104
    • E2: Guide
      EF: 29
    • C2: Treehouse Member
    • A5: Veteran
      Account Age: 5 years
    Username
    Fibbs
    Posted 4 years ago
    Posted by demonsoul1616 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 func_rotate or func_door or w/e. TO answer firefox - You place the name of the filter_activator_team in the parent field of the game_player_equip, 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 game_player_equip.

    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.

  • You must be a member