Player (re)spawns via script
- neodos
- Posts: 1493
- Joined: Sun Dec 09, 2007 8:58 pm
Re: Player (re)spawns via script
From what i know you cannot reference players on scripts, so you can't do that, you also cannot reference players spawns on scripts.
- Grimdoomer
- Admin
- Posts: 1835
- Joined: Sun Dec 09, 2007 9:09 pm
Re: Player (re)spawns via script
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.
Don't snort the magic, we need it for the network.
- CaptainPoopface
- Posts: 714
- Joined: Sat Feb 16, 2008 5:47 am
Re: Player (re)spawns via script
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.
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.
- XZodia
- Staff
- Posts: 2208
- Joined: Sun Dec 09, 2007 2:09 pm
- Location: UK
- Contact:
Re: Player (re)spawns via script
or better yet use the "Active Camo Always On" flag in the hlmt XDCaptainPoopface wrote:You could also give him a camo-shooting weapon so that he can stay cloaked and not draw fire from the AI.
(it works i tested it on vehi's lol)
but tbh the general concept is rather bad...
- neodos
- Posts: 1493
- Joined: Sun Dec 09, 2007 8:58 pm
Re: Player (re)spawns via script
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.
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.
- Grimdoomer
- Admin
- Posts: 1835
- Joined: Sun Dec 09, 2007 9:09 pm
Re: Player (re)spawns via script
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.
Don't snort the magic, we need it for the network.
- XZodia
- Staff
- Posts: 2208
- Joined: Sun Dec 09, 2007 2:09 pm
- Location: UK
- Contact:
Re: Player (re)spawns via script
Trigger Volumes can be used as teleporters....
- Grimdoomer
- Admin
- Posts: 1835
- Joined: Sun Dec 09, 2007 9:09 pm
Re: Player (re)spawns via script
Then we could maybe link them to a script and send the player to there team mates?
Don't snort the magic, we need it for the network.
- XZodia
- Staff
- Posts: 2208
- Joined: Sun Dec 09, 2007 2:09 pm
- Location: UK
- Contact:
Re: Player (re)spawns via script
mb mb...
-
- Posts: 22
- Joined: Tue Feb 26, 2008 4:50 am
Re: Player (re)spawns via script
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.
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.
- neodos
- Posts: 1493
- Joined: Sun Dec 09, 2007 8:58 pm
Re: Player (re)spawns via script
Yes i know that is possible but actually on scripts you can only reference player0 and player1.
What are you trying to compile anyway?
What are you trying to compile anyway?
-
- Posts: 710
- Joined: Thu Jan 03, 2008 5:29 pm
Re: Player (re)spawns via script
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.
I'm willing to poop out this program.