Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- datablock PlayerData(a : PlayerStandardArmor)
- {
- canJet = 0;
- uiName = "Sprinter";
- a = 1;
- };
- datablock PlayerData(b : a)
- {
- maxForwardSpeed = 18;
- maxUnderwaterForwardSpeed = 12;
- maxForwardCrouchSpeed = 8;
- jumpForce = 0;
- uiName = "";
- b = 1;
- };
- function a(%c,%a)
- {
- cancel(%c.b);
- if(!d(%a).a)
- return;
- if(d(%a).b)
- %c.e--;
- else
- %c.e += 0.5;
- for(%i = 0; %i < 25; %i++)
- {
- if(%i <= %c.e)
- %s = %s @ "\c2|";
- else
- %s = %s @ "\c0|";
- }
- bottomprint(%c,"<just:center>" @ %s,1,1);
- if(%c.e < 1)
- c(%c,"a",%a);
- %c.b = schedule(250,0,"a",%c,%a);
- }
- function c(%c,%b,%a)
- {
- %a.setDatablock(%b);
- a(%c,%a);
- }
- package s
- {
- function gameConnection::onDeath(%c,%p,%k,%d,%b)
- {
- %a = %c.player;
- if(d(%a).b)
- c(%c,"a",%a);
- parent::onDeath(%c,%p,%k,%d,%b);
- }
- function Armor::onTrigger(%d,%a,%e,%b)
- {
- if(d(%a).a)
- {
- %c = %a.client;
- if(!%c.a)
- {
- %c.a = 1;
- %c.e = 25;
- }
- if(%c.e > 25)
- %c.e = 25;
- if(%e == 4)
- {
- if(%b)
- %f = b;
- else
- %f = a;
- c(%c,%f,%a);
- }
- }
- Parent::onTrigger(%d,%a,%e,%b);
- }
- };
- activatePackage(s);
- function d(%a)
- {
- return %a.getDatablock();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement