[Resoure/Prefab] Friendship

Discussion in 'Mapping Questions & Discussion' started by martijntje, Dec 11, 2009.

  1. martijntje

    martijntje L8: Fancy Shmancy Member

    Messages:
    539
    Positive Ratings:
    168
    If you are sick of the war and want to make achievement_friendship or just want to make a fun map.

    I have created the awnser to the war. When placing this prefab in you map, it will automaticly remove all weapons that could hurt your fellow man. Unlike traditional methods it does not require sv_cheats to be set to 1 nor does it do that itself. Plus as an extra bonus, you dont need to be a civillian again, you can keep you precious sandwiches and other non-lethal weapons.

    In english, if you place this this prefab in your map it removes all weapons that can do damage, leaving only weapons that do no damage (medigun,sandwich,jarate,dispenser etc.)

    now the intersting information, how it works
    there is a logic auto and a logic_relay
    the logic_auto triggers the logic_relay at map spawn
    the logic_Relay then send an output to all tf_weapon* entities that do damage.
    after 1 second the logic_Relay triggers itself again, in case somebody got their weapon back (resupply locker, respawning)
    Omg recusion


    Download

    Melee version
    this version will still allow the use of melee weapons. (and of course your lovely sandwiches)

    Melee download




    P.S.2 the demo/soldier update may break this, expect this to be updated right after the update
     
    • Thanks Thanks x 2
    Last edited: Dec 11, 2009
  2. grazr

    aa grazr Old Man Mutant Ninja Turtle

    Messages:
    5,436
    Positive Ratings:
    3,557
    Seems fairly redundant to me, if i didn't want to kill people in TF2 i wouldn't play TF2.
     
    • Thanks Thanks x 5
  3. Pseudo

    Pseudo L6: Sharp Member

    Messages:
    319
    Positive Ratings:
    149
    The classes without non-lethal weapons would still go into "civilian" mode though. Maybe you could let them keep a weapon, you can use SetDamageFilter to make it so players don't take any damage.
     
  4. martijntje

    martijntje L8: Fancy Shmancy Member

    Messages:
    539
    Positive Ratings:
    168
    Added a melee version, for use in your favorite melee map.

    unless normal melee versions, this doesnt require sourcemod or sv_cheats set to 1 and will let you keep your non-lehtal weapons (sandwich,medigun etc.) and resupply lockers still work
     
  5. Galago

    Galago L2: Junior Member

    Messages:
    90
    Positive Ratings:
    5
    Yes, I'd love a prefab that would produce a melee-only effec- oh look!
     
  6. Bermuda Cake

    Bermuda Cake L9: Fashionable Member

    Messages:
    679
    Positive Ratings:
    192
    anyway you could limit this to one player? say, the person who picks up the intel?
     
  7. martijntje

    martijntje L8: Fancy Shmancy Member

    Messages:
    539
    Positive Ratings:
    168
    No, Somehow I cannot do that
     
  8. moxie2020

    moxie2020 L1: Registered

    Messages:
    24
    Positive Ratings:
    0
    Is there a way to make it triggered so you can have weapons until you enter a certain room?