Players Dropping Weapons

Need Help? The Day isnt going so well on the Mapping front?
Post Reply
shiftey
npc_combinegunship
npc_combinegunship
Posts: 705
Joined: Thu Oct 09, 2008 4:45 pm
Contact:

Players Dropping Weapons

Post by shiftey »

How do I set my map so players drop all of their weapons when they die?
User avatar
Neico
Lead Coder
Lead Coder
Posts: 1799
Joined: Tue Aug 15, 2006 3:39 pm
Location: Germany
Contact:

Post by Neico »

look at the old hl2 citdadel map with the weapon stripper
Image
shiftey
npc_combinegunship
npc_combinegunship
Posts: 705
Joined: Thu Oct 09, 2008 4:45 pm
Contact:

Post by shiftey »

I'm having problems with my map decompiler but I just thought of an idea when u mentioned weapon stripper.

Maybe a {logic_playerproxy} OnPlayerDeath --> {Weaponstrip} StripWeapon?

EDIT: Nope, that will only take their weapons not drop them physically. Anybody else got any ideas?
shiftey
npc_combinegunship
npc_combinegunship
Posts: 705
Joined: Thu Oct 09, 2008 4:45 pm
Contact:

Post by shiftey »

So I got vmex working.

The way Valve did that scene in HL2 was using trigger entities. Using mapping techniques with a trigger_vphysics_motion, weaponstrip, and trigger_weapon_dissolve for what I'm trying to accomplish just isn't worth it. This needs to be coded in.

Off to the Requests forum...
User avatar
Neico
Lead Coder
Lead Coder
Posts: 1799
Joined: Tue Aug 15, 2006 3:39 pm
Location: Germany
Contact:

Post by Neico »

Image
shiftey
npc_combinegunship
npc_combinegunship
Posts: 705
Joined: Thu Oct 09, 2008 4:45 pm
Contact:

Post by shiftey »

I did a test of this.

Small room surrounded by a trigger_weaponstrip set to "Start Disabled" and containing a

logic_playerproxy
(
OnPlayerDied
(
Enable trigger_weaponstrip 0.00
Disable trigger_weaponstrip 0.01
)
)

Since the output (OnPlayerDied) only fires after the player has died, the weapons he was holding were already destroyed and cannot be triggered and dropped.
fug4life
Beta Tester
Beta Tester
Posts: 4093
Joined: Mon Dec 11, 2006 10:35 am

Post by fug4life »

hmm, I think in my rein map, the best option for you is to have the weapon strip where the player respawns.
Basically I had an arena so at the end of the round I'd teleport them out of the arena and into the spawn area with the weaponstrip deadoralive.

That any help to you???
'I would probably smarten up before you meet Violet'.
'She has zero tolerance for idiots'.

fug's Obsidian files
fug's Obsidian clips
Obsidian wiki
Obsidian Map Database
Post Reply