Forums Index >> Modding >> Space button Disabled?



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 :)

Wednesday, April 13, 2005 at 4:01:14 PM

Can anyone help please?

Wednesday, April 13, 2005 at 5:26:41 PM

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!

Wednesday, April 13, 2005 at 8:02:52 PM

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

Wednesday, April 13, 2005 at 8:54:08 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.

 

Thursday, April 14, 2005 at 2:12:31 AM

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)

Thursday, April 14, 2005 at 7:51:46 PM

Page : <1> :

insert quote insert url insert email insert image bold italic underline superscript subscript horizontal rule : : Help on using forum codes

Add comment:

HTML is disabled within comments, but ZBB Code is enabled.

Back to the top

Web site designed, maintained and funded by -z- and Dan MacDonald