Author Topic: Paralyze Playertype  (Read 2554 times)

I require a playertype that cannot move and cannot activate/click. Sort of like No Move Playertype, but one step further. Id like this to not use the no move playertype code either.

No Move Playertype slides around if placed on a ramp or incline, I dont want that.
No moving at all (other then looking around), no activation, no items use.

/do want
very useful to prevent exploits in various builds of mine

So, can anyone actually make this?
I have very many uses for it..

there is one built into slayer..
datablock PlayerData(PlayerFrozenArmor : PlayerStandardArmor)
{
   thirdPersonOnly = 1;

   runForce = 0;
   maxForwardSpeed = 0;
   maxBackwardSpeed = 0;
   maxSideSpeed = 0;
   maxForwardCrouchSpeed = 0;
   maxBackwardCrouchSpeed = 0;
   maxSideCrouchSpeed = 0;

   jumpForce = 0;
   jumpEnergyDrain = 0;
   minJumpEnergy = 0;
   canJet = 0;
   jetEnergyDrain = 0;
   minJetEnergy = 0;

   runSurfaceAngle  = 0;
   jumpSurfaceAngle = 0;

   uiName = "";
};

function PlayerFrozenArmor::onTrigger(%this,%player,%slot,%state)
{
   return;
}

package Player_Frozen
{
   function serverCmdUseTool(%client,%slot)
   {
      %player = %client.player;
      if(!isObject(%player) || %player.getDatablock().getID() != PlayerFrozenArmor.getID())
         parent::serverCmdUseTool(%client,%slot);
   }
};
activatePackage(Player_Frozen);


Gamemode_Slayer/dependencies/playertypes/Player_frozen.cs

there is one built into slayer..
--

Does it allow the player to click/activate while frozen?

Does it allow the player to click/activate while frozen?
i dont think so, just parent Player::activatestuff and do the same thing as the useTool

i dont think so, just parent Player::activatestuff and do the same thing as the useTool

If I knew what this meant, I would not have suggested it.


For you, i have a paralyzed playertype

Were you just testing that on a server?
Thank you very much.

Edit: I tested it and it still slides when activated.
If you swap to Paralyze while moving/on a ramp you begin to slide.

Can anything be dont to stop that?
« Last Edit: February 05, 2013, 10:59:10 PM by Mr.Noßody »

This comes in the Renderman mod, I think that it was removed though

Were you just testing that on a server?
Thank you very much.

Edit: I tested it and it still slides when activated.
If you swap to Paralyze while moving/on a ramp you begin to slide.

Can anything be dont to stop that?
not sure, my admins were playing hockey with me, i don't know what causes this..

not sure, my admins were playing hockey with me, i don't know what causes this..

I think it's because it doesn't stop your movement, it disables control so any previous velocity is maintained.
Is there some way that the playertype can cause the player to lose all momentum before removing control?

set velocity to 0 + move them back to the old position constantly?
this will break evented movement though, + slides with this playertype

set velocity to 0 + move them back to the old position constantly?
this will break evented movement though, + slides with this playertype

Maybe not constantly. Wouldn't having it switch once be enough?
There has to be a better way.

...anyone?
I really need something that works optimally.