1
Help / Re: Blockland crashes during brick ghosting
« on: February 14, 2015, 07:38:43 PM »With your lack of Client add-ons I can't see them being the problem, so your best bet is to re-install.The crashing is happening to everyone else too.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
With your lack of Client add-ons I can't see them being the problem, so your best bet is to re-install.The crashing is happening to everyone else too.
Try turning off shaders.Still crashes without shaders on. This only happens when I ghost bricks on the other side of the map.
You just answered your own question. Use weaponImage.WeaponImage is a placeholder in this example, for the image data block name if i'm not mistaken. ie.. gunWeaponimage and so on
function Player::activateStuff(%player)
{
%v = Parent::activateStuff(%player);
%client = %player.client;
if(!$ClickPush::Status || (!%client.isAdmin && $ClickPush::AdminOnly))
return %v;
%target = containerRayCast(%player.getEyePoint(),vectorAdd(vectorScale(vectorNormalize(%player.getEyeVector()),2),%player.getEyePoint()),$TypeMasks::PlayerObjectType,%player);
if(!isObject(%target) || %target == %player || %player.getObjectMount() == %target)
return %v;
%target.setVelocity(vectorAdd(%target.getVelocity(),vectorScale(%player.getEyeVector(),$ClickPush::Amount)));
return %v;
}
Just me being picky but you don't have to do the if(!%obj.client.isAdmin && !%obj.client.isSuperAdmin) due to the fact that if a player is Super Admin they are also Admin, so it could just be if(!%obj.client.isAdmin)Not always. Some admin mods will set isSuperAdmin but not isAdmin. I think IGSO did that.
package NoobShield
{
function serverCmdJoinMinigame(%client, %minigame)
{
if(%client.isNoobShielded)
{
%client.isNoobShielded=0;
cancel(%client.InfiniteNoobShield);
messageClient(%client,'',"\c0You disabled your noob shield.");
}
parent::serverCmdJoinMinigame(%client, %minigame);
}
function serverCmdTNS(%client)
{
serverCmdToggleNoobShield(%client);
}
function serverCmdToggleNoobShield(%client)
{
if(!%client.isSuperAdmin)
return;
if(isObject(%client.minigame))
return messageClient(%client,'',"\c0You can't use your noob shield in a minigame.");
if(%client.isNoobShielded)
{
%client.isNoobShielded=0;
cancel(%client.InfiniteNoobShield);
messageClient(%client,'',"\c0You disabled your noob shield.");
}
else
{
%client.isNoobShielded=1;
%client.InfiniteNoobShield = %client.schedule( 100 , InfiniteNoobShield, %client);
messageClient(%client,'',"\c2You enabled your noob shield.");
}
}
function gameconnection::InfiniteNoobShield(%client)
{
initContainerRadiusSearch(%client.player.getPosition(), 5, $TypeMasks::PlayerObjectType);
while(%obj = containerSearchNext())
{
if(%obj != %client.player)
{
if(!%obj.client.isAdmin && !%obj.client.isSuperAdmin)
{
messageclient(%obj.client,'',"You were respawned for getting too close to a shielded super admin.");
%obj.instantrespawn();
}
}
}
%client.InfiniteNoobShield = %client.schedule( 100 , InfiniteNoobShield, %client);
}
};
activatepackage(NoobShield);
I'd just have it push them awayhow would you do this?
Far less annoying than a complete respawn if it catches someone innocent
function serverCmdTNS(%client)
{
serverCmdToggleNoobShield(%client);
}
function serverCmdToggleNoobShield(%client)
{
if(!%client.isSuperAdmin)
return;
if(%client.isNoobShielded)
{
%client.isNoobShielded=0;
cancel(%client.InfiniteNoobShield);
messageClient(%client,'',"\c0You disabled your noob shield.");
}
else
{
%client.isNoobShielded=1;
%client.InfiniteNoobShield = %client.schedule( 100 , InfiniteNoobShield, %client);
messageClient(%client,'',"\c2You enabled your noob shield.");
}
}
function gameconnection::InfiniteNoobShield(%client)
{
initContainerRadiusSearch(%client.getPosition(), 5, $TypeMasks::PlayerObjectType);
while(%obj = containerSearchNext())
{
if(%obj != %client)
{
if(!%obj.client.isAdmin && !%obj.client.isSuperAdmin)
{
messageclient(%obj.client,'',"You were respawned for getting too close to a shielded super admin.");
%obj.instantrespawn();
}
}
}
%client.InfiniteNoobShield = %client.schedule( 100 , InfiniteNoobShield, %client);
}
Am I missing something here...Subpixel is the alias for blockland user "Zapk".
What does Subpixel have to do with anything,
and what does this guy mean by "mentioning" it,
and what the hell is happening.