Blockland Forums > Modification Help
Infection on death
Eryehk:
--- Quote from: MrPickel on June 28, 2007, 01:15:54 PM ---Thats what he's done.
--- Quote ---
--- Code: ---%client.MonsterfyPls = !%client.MonsterfyPls;[/quote]
--- End code ---
--- End quote ---
I'm not used to doing that type of changing so I'm clueless on the changing part.
--- End quote ---
Terror:
use %this.setDatablock(datablock);
Eryehk:
....Like i said im clueless for that, I want it to go between Dhuman and Dcreature.
zackin5:
what he wants is a dead body to turn into a bot that will do what ever
ex:
1. player gets killed
2. the body of the dead player "revives" aka gets up
3. the body attacks other players.
in other words he wants a script so that the player, when killed, will turn into a bot
(to much info?)
Game master pro:
I believe what he really wants is, simply.
2 teams, we will call them Humans and Others for an example.
An other kills a human, said human, when respawned, will become an other, and nice versa. Human kills other, other becomes human.
The way you'd do this is: (lol, pseudo code)
--- Code: ---function GameConnection::OnClientEnterGame(%this)
{
//split up teams evenly here by looping through all players, checking their teams, seeing which has less players, put them in that team.
parent::OnClientEnterGame(%this);
}
function PlayerStandardArmor:OnDeath(%this,%personwhokilledthem)
{
if(%this.team != %personwhokilledthem.team)
{
%this.team = %personwhokilledthem.team;
parent::ondeath(%this,%personwhokilledthem);
}
else {
parent::ondeath(%this,%personwhokilledthem);
}
--- End code ---
Note: This is based on theory, not actual function names or variable names.