Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DECORATE:
- Actor DemonModeAltfire : FastProjectile {
- RenderStyle Add
- Radius 13
- Height 13
- Scale 0.1
- Speed 0
- Damage (CallACS ("FDDemonModeDamage"))
- Projectile
- States {
- Spawn:
- TNT1 A 0 A_ScaleVelocity (35)
- Idle:
- DMNA A 1 Bright
- Loop
- }
- }
- ACS:
- script "FDDemonModeDamage" (void) {
- // Pray to the RNG god
- int BaseDamage = Random (Random (1, 3), Random (4, 8));
- int Randomizer1 = Random (Random (1, 10), Random (1, 10));
- int Randomizer2 = Random (0, Random (1, 2));
- int Result = 0;
- int x = Randomizer1 * BaseDamage;
- if (Randomizer2 == 1) {
- Result = (x * Random (2, 4)) + ((x / Random (2, 5)) >> 16 * Random (1, 2));
- } else if (Randomizer2 == 2)
- Result = x + Random (2, 4) * (x / Random (2, 5));
- else
- Result = x;
- SetResultValue (Result);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement