Forums Index >> Modding >> Space button Disabled?
Page : <1> :
Can anyone help please?
Try putting this in main.cs and/or your mission file:
moveMap.bind(keyboard, "space", sendSpawnCommand);
If that doesn't work, then you've most likely wrecked tank2.cs. Put this in your mission file (or just get a new tank2.cs):
function TankData::onDestroyed(%db,%this,%killer)
{
if ($Game::SinglePlayer)
{
%db.onSPDestroyed(%this,%killer);
return;
}
if ($Game::TargetRange)
{
%db.onTargetDestroyed(%this,%killer);
return;
}
// need to deal with both ai bots and players as killer's and killee's
%client = %this.client;
%client.deaths++;
// echo("killed tank: " @ %this @ ", client: " @ %client);
// echo("killer tank: " @ %killer @ ", client: " @ %killerClient);
If (isObject(%killer))
{
messageAll('MsgClientKilled','%1 has been eliminated by %2!',%client.name,%killer.client.name);
if ($Game::MissionType $= "Deathmatch")
{
// this is a score...
if ($Game::TeamGame)
{
if (%killer.client.team.getId() != %client.team.getId())
%killer.incScore(1,1);
}
else
%killer.incScore(1,1);
}
%killer.client.kills++;
}
else
{
messageAll('MsgClientKilled','%1 has been eliminated!',%client.name);
}
If ($Game::MissionType $= "Deathmatch")
{
if ($Game::TeamGame)
{
if (isObject(%killer) && %killer.client.team.getId() == %client.team.getId())
// team killer, lose point
%this.incScore(-1,-1);
else
%this.incScore(-1,0);
}
else
%this.incScore(-1,-1);
}
if (!isObject(%client.ai))
{
if ($Game::aiControlMode)
{
%client.player = 0;
%client.schedule(4000,"spawnPlayer");
}
else
commandToClient(%client,'CenterPrint',"Your brain has been separated from your tank, press SPACE.", 0, 1 );
}
else
spawnBotPlayer(%client);
}
Hope this helps!
Hmm... Both didnt work
I even replaced the tank2.cs still dont work...
I think it is a internal prob. :( :)
Have any other ideas :)
Last edited: Wednesday, April 13, 2005 at 8:54:58 PM
Is it only in your servers that the spacebar doesn't work? Does it work when typing regular sentences in, say, Microsoft Word? You might want to try out a new keyboard just to see if the problem is hardware, not software.
It is not hardware it is software or I wouldent be able to type this ( ) only in my servers and people that join cant respawn either (Use the spacebar)
Page : <1> :
My space button is disabled. How can I make it work again?
P.S. It is only disabled in my servers
Thanks in advance :)