Player (re)spawns via script

Post Reply
User avatar
neodos
Posts: 1493
Joined: Sun Dec 09, 2007 8:58 pm

Re: Player (re)spawns via script

Post 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.
User avatar
Grimdoomer
Admin
Posts: 1835
Joined: Sun Dec 09, 2007 9:09 pm

Re: Player (re)spawns via script

Post 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.
Don't snort the magic, we need it for the network.
User avatar
CaptainPoopface
Posts: 714
Joined: Sat Feb 16, 2008 5:47 am

Re: Player (re)spawns via script

Post 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.
User avatar
XZodia
Staff
Posts: 2208
Joined: Sun Dec 09, 2007 2:09 pm
Location: UK
Contact:

Re: Player (re)spawns via script

Post 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...
Image
JacksonCougar wrote:I find you usually have great ideas.
JacksonCougar wrote:Ah fuck. Why must you always be right? Why.
User avatar
neodos
Posts: 1493
Joined: Sun Dec 09, 2007 8:58 pm

Re: Player (re)spawns via script

Post 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.
User avatar
Grimdoomer
Admin
Posts: 1835
Joined: Sun Dec 09, 2007 9:09 pm

Re: Player (re)spawns via script

Post 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.
Don't snort the magic, we need it for the network.
User avatar
XZodia
Staff
Posts: 2208
Joined: Sun Dec 09, 2007 2:09 pm
Location: UK
Contact:

Re: Player (re)spawns via script

Post by XZodia »

Trigger Volumes can be used as teleporters....
Image
JacksonCougar wrote:I find you usually have great ideas.
JacksonCougar wrote:Ah fuck. Why must you always be right? Why.
User avatar
Grimdoomer
Admin
Posts: 1835
Joined: Sun Dec 09, 2007 9:09 pm

Re: Player (re)spawns via script

Post by Grimdoomer »

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.
User avatar
XZodia
Staff
Posts: 2208
Joined: Sun Dec 09, 2007 2:09 pm
Location: UK
Contact:

Re: Player (re)spawns via script

Post by XZodia »

mb mb...
Image
JacksonCougar wrote:I find you usually have great ideas.
JacksonCougar wrote:Ah fuck. Why must you always be right? Why.
lx Leo xl
Posts: 22
Joined: Tue Feb 26, 2008 4:50 am

Re: Player (re)spawns via script

Post 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.
User avatar
neodos
Posts: 1493
Joined: Sun Dec 09, 2007 8:58 pm

Re: Player (re)spawns via script

Post 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?
DarkShallFall
Posts: 710
Joined: Thu Jan 03, 2008 5:29 pm

Re: Player (re)spawns via script

Post 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.
Post Reply