Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script METROID_SPEED_BOOSTER ENTER
- {
- int buttons;
- while (1)
- {
- buttons = GetPlayerInput(-1, INPUT_BUTTONS);
- if (CheckInventory("SpeedBoosterAcquired") == 1)
- {
- if (buttons & (BT_SPEED | BT_FORWARD) == (BT_SPEED | BT_FORWARD))//(buttons & BT_SPEED && buttons & BT_FORWARD)
- {
- if (CheckInventory("SpeedBoostCounter") == 0) { ActivatorSound("speedboost/start",127); }
- GiveInventory("SpeedBoosterPrepare",1);
- GiveInventory("SpeedBoosterActive",1);
- GiveInventory("SpeedBoostCounter",1);
- if (CheckInventory("SpeedBoostCounter") > 8)
- {
- ActivatorSound("speedboost/loop",127);
- GiveInventory("SpeedBooster",1);
- GiveInventory("SpeedBoosterFlashing",1);
- }
- }
- else
- {
- TakeInventory("SpeedBooster",1);
- TakeInventory("SpeedBoosterPrepare",1);
- TakeInventory("SpeedBoosterActive",1);
- TakeInventory("SpeedBoostCounter",0x7FFFFFFF);
- }
- }
- delay(9);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement