Player_weaponstrip? Created 19 years ago2004-10-13 13:45:32 UTC by Homercidal Homercidal

Created 19 years ago2004-10-13 13:45:32 UTC by Homercidal Homercidal

Posted 19 years ago2004-10-13 13:45:32 UTC Post #66036
I looked through the Entity list and thought of an idea for part of a level, but I need to know if the player_weaponstrip just takes the weapons out of inventory, or does it throw them on the ground, like when the person gets killed.

My plan involves scrounging dropped weapons, which obviously wouldn't work well without dropped weapons.

If not, can anyone think of a way that the players weapons could be dropped when they touch a brush or entity?
Posted 19 years ago2004-10-13 13:47:55 UTC Post #66039
it gets rid of the weapons completely without throwing them out of your pocket and on the floor sorry :(
Habboi HabboiSticky White Love Glue
Posted 19 years ago2004-10-13 13:58:29 UTC Post #66045
:nuts: Well, I guess I'll have to figure out how to do that. Surely there must be a way to tap into the method of dropping weapons just like when a player dies, without killing them. I'm not sure how they do that, but seems as though it could be called from a trigger somehow.

Maybe I could have it trigger the weaponstrip, then right after, have it generate a locker with a specific group of weapons, or even better, a random set.... Maybe not better.
Posted 19 years ago2004-10-13 15:25:05 UTC Post #66087
it's possible, but hard, an you'd have to make a few compromises along the way.

Also, I don't know if you noticed, but when you shoot someone and they die, they drop their weapons.
Posted 19 years ago2004-10-13 15:43:17 UTC Post #66092
if you use a monstermaker to spawn a weapon_whatever maybe?
Posted 19 years ago2004-10-13 15:45:20 UTC Post #66094
Code...
Seventh-Monkey Seventh-MonkeyPretty nifty
Posted 19 years ago2004-10-13 16:25:32 UTC Post #66119
I wish that you could like make a zombie drop ammo or a pistol when he dies = - too bad you cant.
Posted 19 years ago2004-10-13 19:01:45 UTC Post #66161
posted by Peace and LOve:
"it's possible, but hard, an you'd have to make a few compromises along the way.

Also, I don't know if you noticed, but when you shoot someone and they die, they drop their weapons."

I noticed. That's why I mentioned it in both of my previous threads. the trick is to figure out how to tap into that particular feature of dying, without killing them.
Posted 19 years ago2004-10-14 05:54:50 UTC Post #66263
why would you not want to kill them? is that not the whole object of a multiplayer game?

and 7th gave teh only asnwer you should listen to:

code

this kind of thing is not included in teh map.

what alot of ppl don't seem to understand, is that the map is what you might call teh front end of the whole game as a unit, the code is liek teh backbon,e deciding what to do next, and how somethign behaves, and calling on different models and actions, the maps are just a visual representation of teh whoel process.

so if you take somethign that you physically have to do, ie press a button on teh keyboard, chances are that some part of the code is controlling that...

.. and that it will be impossible to control form a map.

the hard way i talked about, would be to write a plug in for AMX, AMX is your only way to alter the game's code (so to speak) while keeping it the same game, that people can play without downloading a new mod.
Posted 19 years ago2004-10-14 09:35:40 UTC Post #66365
Oops, that was me. ^^^ Forgot to log in..
Posted 19 years ago2004-10-14 09:54:18 UTC Post #66378
I'd say give up on HLDM, it's about as fun as jabbing eyes in your needles.

don't listen to me though.

you can strip the players weapons, and you can also spawn weapons where teh ydropped them, but teh tricky thing would be spawning the right weapons, the only way i can see is AMX m8 =)
Posted 19 years ago2004-10-14 10:48:50 UTC Post #66409
Actually, I rather enjoy playing HLDM. At this point I'd settle for just giving a couple of good weapons as incentive.

I'll have to chekc that AMX out anyway. Looks like it might be capable of a few things.
Posted 19 years ago2004-10-15 06:10:12 UTC Post #66615
it's server side only, so whatever you do you have to be runnign a server to do it, it may be useful to write a plug-in for amcx, then ppl who want top play your ideas, can play them anywhere, on any map.
Posted 19 years ago2004-10-15 09:01:32 UTC Post #66656
Well, no sh*t..
Posted 19 years ago2004-10-18 09:32:57 UTC Post #67283
:D

That was my anonymous post right above. This site keeps logging me out if I step away for a minute, then I go to post and it sends it as anonymous. I'd just as soon have to login, or it might be good idea to at least remind a person that he is posting as anonymous. OH well.
Posted 19 years ago2004-10-18 10:08:14 UTC Post #67287
Well, I leave my THWL window open, sometims for hours at a time, maybe you have bad cookies, or soem evil spyware.
Posted 19 years ago2004-10-18 13:42:52 UTC Post #67351
Nah, I imagine he's just using IE.
Seventh-Monkey Seventh-MonkeyPretty nifty
Posted 19 years ago2004-10-18 16:34:33 UTC Post #67398
I use IE

And like I've said to you guys, it's a great browser, and I prefer it to some crazy free browser that deletes ya brain!!

:P
Posted 19 years ago2004-10-19 02:52:40 UTC Post #67456
I'm not going to dignify that with a response :|
Seventh-Monkey Seventh-MonkeyPretty nifty
Posted 19 years ago2004-10-19 05:06:22 UTC Post #67476
Too bad ya just did, ya Operatic freakazoid!

But seriously, I've never had any problems with IE, and like the old saying goes,

if it ain't broke...
Posted 19 years ago2004-10-19 05:51:10 UTC Post #67486
That's a good idea Homercidal! Too bad there's no ready-made entity for that. I guess Half-Life only made the player_weaponstrip cause that's the only one used for that scene when Gordon gets ganged up in the dark and becomes a prisoner, removing all his weapons permanently.

BTW, you can try binding "drop" to a key then when you press it, the player uses the key, he drops the weapon currently used BUT only that weapon... not the whole set of weapons. Just like when a player dies, the only weapon drop is the current one...

Good idea anyways!
Good luck!
Posted 19 years ago2004-10-19 06:20:21 UTC Post #67489
if it ain't broke...
Then again, since it blatantly is...
Seventh-Monkey Seventh-MonkeyPretty nifty
Posted 19 years ago2004-10-19 07:32:39 UTC Post #67511
Then again, since it blatantly is...
...the best out of the 4 major browsers, I'll keep using it =)
Posted 19 years ago2004-10-19 07:45:55 UTC Post #67520
here's what ya do, it dawned on me, that it's not hard, just requires you to tell the player to sit down and stfu.
here goes:

As the player spawns, you give them a pre-designated set of weapons (say, a gun, a crowbar, and anotehr gun, plus a nade, and some explosives, and anotehr gun, just to be sure), you then set up triggers in your map where you want players to have to give up their guns to get, and have that trigger a player_weaponstrip, and spawn that set of weapons right there on teh ground, can't even remember the entity to do that, I'll find out if no-one else steps forward with the answer, though.

and there you go, they won't drop the guns when they get shot (don't think that's what you wanted anyway, right?), but you can force them to drop teh guns, you have to make sure that they get a certain set of weapons though, just so it looks like they've dropped teh guns they had, not just lost their guns, and had some random ones spawn instead.
Posted 19 years ago2004-10-19 09:22:01 UTC Post #67570
...the best out of the 4 major browsers, I'll keep using it
If by 'major' you're referring to Mosaic 1, Netscape 2, AOL and Lynx, then I guess so.

On-topic, PaLO: bear in mind that the player might pick up grunt ammo, weapons, etc?
Seventh-Monkey Seventh-MonkeyPretty nifty
Posted 19 years ago2004-10-19 09:43:52 UTC Post #67587
I think this is a multi player scenario, if not, then you've got a point and I revert back to my previous statement:
and 7th gave teh only asnwer you should listen to:

code
Posted 19 years ago2004-10-19 15:40:19 UTC Post #67672
Yes, MP map and , second, I do NOT use IE. I prefer Mozilla and Firefox.

Anyway, I'll have to play with the editor some more. I was going to play with it on my 10 hour ride to Kentucky, but after burning a CD with all of the utilities I wanted to try, I forgot the HL disks! LOL!

The editor still worked, but I could not play the level.

My logout problem might be because I switched to halflife2.net and stuff to check on the gold announcement. I'll do some checking and see if that's the cause.
You must be logged in to post a response.