Page 1 of 1

Re: Player (re)spawns via script

Posted: Mon Mar 03, 2008 7:53 am
by neodos
From what i know you cannot reference players on scripts, so you can't do that, you also cannot reference players spawns on scripts.

Re: Player (re)spawns via script

Posted: Mon Mar 03, 2008 7:32 pm
by Grimdoomer
You can refrence players in SP as Player0 and Player1, you can also add for up to 4 players, see the PLayer0 and Player1 script. However im not sure if you can spawn them.

Re: Player (re)spawns via script

Posted: Mon Mar 03, 2008 8:13 pm
by CaptainPoopface
I thought of a hacky way to move the respawns in MPC...

Plug in a controller for a dummy player. Equip him with some kind of suicide weapon (a rocket launcher will work welll enough, but you could also use a gun that drops 3 frag grenades at his feet or something). When you get to a place in the map that is far away enough to be a good respawn, have the dummy player kill himself. Then he will teleport to you or one of your teammates. Leave him there, and if you die, you will teleport back to him. Ideally, you could give the dummy player his own hlmt with a very fast shield recharge rate, so only an instantaneous high damage blow or two will kill him. You could also give him a camo-shooting weapon so that he can stay cloaked and not draw fire from the AI.

A dirty method, and you have to divide your screen with another player, but you get a movable respawn out of it.

Re: Player (re)spawns via script

Posted: Mon Mar 03, 2008 9:14 pm
by XZodia
CaptainPoopface wrote:You could also give him a camo-shooting weapon so that he can stay cloaked and not draw fire from the AI.
or better yet use the "Active Camo Always On" flag in the hlmt XD
(it works i tested it on vehi's lol)

but tbh the general concept is rather bad...

Re: Player (re)spawns via script

Posted: Mon Mar 03, 2008 10:23 pm
by neodos
Sorry but also you cannot shoot when you are outside the sbsp :(

I would have thinked to something like adding MP teleporters on the spawn places and play with a mach to block or unblock the teleporter depending of which sbsp is loaded.

Re: Player (re)spawns via script

Posted: Mon Mar 03, 2008 11:28 pm
by Grimdoomer
Could we maby pad the outside of the BSP with HUGE teleporters, so if you get spawned outside you spawn next to your team mate? I think we can add a script to the teleporter. Hmm I havent looked at H2X in a while.

Re: Player (re)spawns via script

Posted: Tue Mar 04, 2008 12:37 am
by XZodia
Trigger Volumes can be used as teleporters....

Re: Player (re)spawns via script

Posted: Tue Mar 04, 2008 12:44 am
by Grimdoomer
Then we could maybe link them to a script and send the player to there team mates?

Re: Player (re)spawns via script

Posted: Tue Mar 04, 2008 1:04 am
by XZodia
mb mb...

Re: Player (re)spawns via script

Posted: Sat Feb 21, 2009 2:47 am
by lx Leo xl
Well I am happy to inform that I'm almost sure I found a fix for the re-spawning issue using scripts.
Basically the script will determine what bsp you are on, and depending on that it will teleport you to the specified place if you die, so basically all it takes is to create a rally point that has vehicles in each of the bsps where you would "respawn".

Right now my only issue is getting the script to compile.

Re: Player (re)spawns via script

Posted: Sat Feb 21, 2009 10:00 am
by neodos
Yes i know that is possible but actually on scripts you can only reference player0 and player1.

What are you trying to compile anyway?

Re: Player (re)spawns via script

Posted: Thu Jun 09, 2011 8:35 am
by DarkShallFall
Have the host use an application that gets their camera position, then set the player spawn to that position. I know this topic is old, but if anyone is interested or still wants to play mpc.

I'm willing to poop out this program.