Author Topic: Spawn without jets  (Read 3620 times)

For my RPG map, I need just 2 questions answered, please:

1. How do I make all players spawn in "Quake" or "No Jets" player mode?

2. How do I disable spawn-bricks?

1. How do I make all players spawn in "Quake" or "No Jets" player mode?

2. How do I disable spawn-bricks?

Easiest way is to make everyone spawn with different datablocks is to modify PlayerStandardArmor. Use a package etc. to change it...

Disable spawn bricks like this: go to base/data/bricks/special and remove SpawnPoint.blb I think it is.

I got the 2nd one, but the first is a tad bit over my head :-D

How do I use a package to change it? Do I... Do I... Change it with my package? (Family Guy Reference)

Code: [Select]
package NoJets{
function GameConnection::SpawnPlayer(%this){
Parent::SpawnPlayer(%this);
%this.player.setDataBlock(PlayerNoJet);
}
};
ActivatePackage(NoJets);

Randy's way works too. :P

Randy's way works too. :P
Except if PlayerNoJet Add-On is not selected :o

I think you might need to apply the body parts/colours again after changing the dataBlock.
Code: [Select]
package NoJets{
function GameConnection::SpawnPlayer(%this){
Parent::SpawnPlayer(%this);
%this.player.setDataBlock(PlayerNoJet);
%this.ApplyBodyParts();
%this.ApplyBodyColors();
}
};
ActivatePackage(NoJets);


AWESOME!

Almost there.....

I found a better way to get what I want, without disabling the spawn-brick.....

Is it possible to disable Minigame creation? With a package??

And thanks for the no-jet package, I added it to my map and it works flawlessly :-D
« Last Edit: May 22, 2007, 08:06:04 PM by Wizzard1 »


Replace Randy's stuff with this:

Code: [Select]
package NoJets{
function GameConnection::SpawnPlayer(%this){
Parent::SpawnPlayer(%this);
%this.player.setDataBlock(PlayerNoJet);
%this.ApplyBodyParts();
%this.ApplyBodyColors();
}

function serverCmdCreateMinigame(%client){
return;
}
};
ActivatePackage(NoJets);

I use that in my RP :D

You might need an edited function to make weapons able to damage people, though. Or make it so only you can create a minigame:

Code: [Select]
package NoJets{
function GameConnection::SpawnPlayer(%this){
Parent::SpawnPlayer(%this);
%this.player.setDataBlock(PlayerNoJet);
%this.ApplyBodyParts();
%this.ApplyBodyColors();
}

function serverCmdCreateMinigame(%client,%a,%b,%c,%d,%e){
if(%client.BL_ID == [YOUR ID] parent::serverCmdCreateMinigame(%client,%a,%b,%c,%d,%e);
}
};
ActivatePackage(NoJets);

Obviously, replace [YOUR ID] with your Blockland ID and maybe add more %f,%g,%h etc if it makes a minigame with about half the settings turned on.

What..You can use parents on anything..
I thought they were specific. Omg I fail, this opens up whole new world for me.

So Ephi, by adding that one, it makes jets impossible EVEN under a Minigame?

Or do I want to use the other one, so only ADMIN can make minigames?