Dropped Weapons - Specific Entity Names?

Discussion in 'Mapping Questions & Discussion' started by max_banana23, Jul 10, 2015.

  1. max_banana23

    max_banana23 L1: Registered

    Messages:
    3
    Positive Ratings:
    0
    Hey mappers.
    I was thinking about this idea for a new map idea I had:

    Since the Gun Mettle update, dropped weapons can now be swapped. I have some questions about that.
    1) Do dropped weapons have a specific entity?
    2) Can we spawn them in Hammer, and so, use them ingame?
    3) Can we filter by these entities? (could filter classes by their weapons)

    I was just thinking of this for a map where weapons go along like a conveyor belt and you could pick some up for interesting game play.

    Thanks. :thumbup:
     
    Last edited: Jul 10, 2015
  2. Geit

    aa Geit 💜 I probably broke it 💜

    Messages:
    597
    Positive Ratings:
    1,115
    1) tf_dropped_weapon
    2) No, They have no modifiable keys that I could see when I looked.
    3) Yes
     
    • Thanks Thanks x 1
  3. worMatty

    aa worMatty Repacking Evangelist

    Messages:
    1,072
    Positive Ratings:
    836
    The weapons are physics entities that are created when they are dropped by dead players/live players tossing them on the ground. You can kill them, but you can't create them or change their properties. You can filter by their classname, meaning they trigger something or they don't, but you can't filter by weapon type because that information is not made available to the logic system. Previously, dropped weapons used the entity name tf_ammo_pack. Now that is presumably being used by the actual ammo packs that drop from enemies.

    Regarding making these weapons available on a conveyor belt: That would be interesting but unlikely to affect gameplay because players likely already own most if not all the weapons available to their chosen class, and players aren't likely to spend time waiting at a conveyor belt when there are enemies to kill, or defend against. You might be able to teleport dropped weapons to your conveyor belt, though, so players have to visit it to pick them up. Note that you can't use a physics object on a func_conveyor. They only affect players.

    Fun!
     
  4. Berry

    aa Berry if you read this you're a nerd

    Messages:
    1,003
    Positive Ratings:
    1,549
    Assuming this is a joke map, suppose players spawned with just their melee weapons? There'd be a reason suddenly to go after these other weapons; though it could be very unfun to be stripped to melee when one guy who got lucky just happened to be decked out, but that'd just depend on the rarity of these conveyors and the amount of weapons on them.
     
  5. worMatty

    aa worMatty Repacking Evangelist

    Messages:
    1,072
    Positive Ratings:
    836
    That's true, Berry. If players were forced to start with no projectile weapons, then picking them up would be interesting.

    Perhaps as a work-around, players could start the game with weapons and then they could be killed, and their dropped weapons teleported :) But they wouldn't last very long in the world, disappearing after something like 20 or 30 seconds.

    I wonder if it's possible to create these weapons using a SourceMod plugin?
     
  6. henke37

    aa henke37

    Messages:
    1,926
    Positive Ratings:
    454
    Anything is possible when you can run code on the server.