[Resoure/Prefab] Friendship

martijntje

L8: Fancy Shmancy Member
Aug 2, 2009
539
334
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
 
Last edited:

Pseudo

L6: Sharp Member
Jan 26, 2008
319
150
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.
 

Galago

L2: Junior Member
Sep 29, 2008
90
5
Yes, I'd love a prefab that would produce a melee-only effec- oh look!