Tyman2007
Ya Rly >.
- Reaction score
- 74
Ok, here is something im working on, its called a WTF bomb. Its funny believe me.
MUI/MPI: Since i cant make it MUI, i have to make it MPI.
Description: Nukes the crap out of anything in its way!
Note: Pictures may be a bit big. Since i dont know the outcome of the size, it could be small.:nuts:
EDIT: Forgot to add the triggers.
Warning: Due to the fact that it is a WIP and is very buggy, i HIGHLY recommend that you do NOT insert into your map
Warning2: Do NOT let the hero at the bottom right die if you want to see the WTF Cinematic.
MUI/MPI: Since i cant make it MUI, i have to make it MPI.
Description: Nukes the crap out of anything in its way!
Note: Pictures may be a bit big. Since i dont know the outcome of the size, it could be small.:nuts:
EDIT: Forgot to add the triggers.
Code:
Bomb Init
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Detonate (Bomb)
Actions
Player Group - Pick every player in (All players controlled by a User player) and do (Actions)
Loop - Actions
Player - Disable Detonate (Bomb) for (Picked player)
Set Point[1] = (Position of (Triggering unit))
Set Unit = (Triggering unit)
Set Group = (Units within 2000.00 of Point[1] matching (((Matching unit) belongs to an enemy of Player 1 (Red)) Equal to True))
Unit - Pause (Triggering unit)
Camera - Pan camera for (Owner of (Triggering unit)) to Point[1] over 0.00 seconds
Camera - Set the camera bounds for (Owner of (Triggering unit)) to (Region centered at Point[1] with size (0.00, 0.00))
Sound - Play wtfboom <gen> at 100.00% volume, located at Point[1] with Z offset 0.00
Wait 1.75 seconds
Trigger - Turn on Sliding <gen>
Unit Group - Pick every unit in Group and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Life of (Picked unit)) Less than or equal to 50.00
Then - Actions
Unit - Kill (Picked unit)
Else - Actions
Unit - Set life of (Picked unit) to 1.00
Unit - Pause (Picked unit)
Animation - Play (Picked unit)'s death animation
Special Effect - Create a special effect at Point[1] using Objects\Spawnmodels\Other\NeutralBuildingExplosion\NeutralBuildingExplosion.mdl
Special Effect - Destroy (Last created special effect)
For each (Integer A) from 1 to 5, do (Actions)
Loop - Actions
Set Point[2] = (Point[1] offset by 250.00 towards (72.00 x (Real((Integer A)))) degrees)
Special Effect - Create a special effect at Point[2] using Abilities\Spells\Human\FlameStrike\FlameStrike1.mdl
Set Effect[(Integer A)] = (Last created special effect)
Custom script: call RemoveLocation(udg_Point[2])
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
Set Point[2] = (Point[1] offset by 500.00 towards (36.00 x (Real((Integer A)))) degrees)
Special Effect - Create a special effect at Point[2] using Abilities\Spells\Human\FlameStrike\FlameStrike1.mdl
Set Effect[((Integer A) + 5)] = (Last created special effect)
Custom script: call RemoveLocation(udg_Point[2])
For each (Integer A) from 1 to 20, do (Actions)
Loop - Actions
Set Point[2] = (Point[1] offset by 1000.00 towards (18.00 x (Real((Integer A)))) degrees)
Special Effect - Create a special effect at Point[2] using Abilities\Spells\Human\FlameStrike\FlameStrike1.mdl
Set Effect[((Integer A) + 15)] = (Last created special effect)
Custom script: call RemoveLocation(udg_Point[2])
Environment - Change terrain type at Point[1] to Lordaeron Summer - Dirt using variation -1 in an area of size 15 and shape Circle
Environment - Change terrain type at Point[1] to Lordaeron Summer - Rough Dirt using variation -1 in an area of size 8 and shape Circle
Environment - Create a 7.00 second Normal ripple deformation at Point[1] with starting radius 0.00, ending radius 2000.00, and depth 500.00, using 0.50 second ripples spaced 500.00 apart
Environment - Create a 0.50 second Permanent crater deformation at Point[1] with radius 2000.00 and depth 300.00
Unit - Kill (Triggering unit)
Camera - Shake the camera for (Owner of (Triggering unit)) with magnitude 1000.00
Camera - Rotate camera 1440.00 degrees around Point[1] for (Owner of (Triggering unit)) over 7.00 seconds
Wait 7.00 seconds
Custom script: call RemoveLocation(udg_Point[1])
Custom script: call RemoveLocation(udg_Point[2])
Player Group - Pick every player in (All players controlled by a User player) and do (Actions)
Loop - Actions
Player - Enable Detonate (Bomb) for (Picked player)
For each (Integer A) from 1 to 35, do (Actions)
Loop - Actions
Special Effect - Destroy Effect[(Integer A)]
Camera - Stop swaying/shaking the camera for (Owner of (Triggering unit))
Camera - Set the camera bounds for (Owner of (Triggering unit)) to (Initial camera bounds)
Camera - Reset camera for (Owner of (Triggering unit)) to standard game-view over 0.00 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in Group) Greater than or equal to 1
Then - Actions
Unit Group - Pick every unit in Group and do (Actions)
Loop - Actions
Unit Group - Remove (Picked unit) from Group
Else - Actions
Code:
Sliding
Events
Time - Every 0.03 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in Group and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit is alive) Equal to False
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is alive) Equal to True
Then - Actions
Set Point[3] = (Position of (Picked unit))
Set Real[1] = (Angle from Point[1] to Point[3])
Set Real[2] = (Distance between Point[1] and Point[3])
Set Point[4] = (Point[3] offset by 25.00 towards Real[1] degrees)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Real[2] Less than or equal to 2000.00
Then - Actions
Unit - Move (Picked unit) instantly to Point[4]
Else - Actions
Unit - Unpause (Picked unit)
Unit Group - Remove (Picked unit) from Group
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in Group) Less than or equal to 0
Then - Actions
Custom script: call DestroyGroup(udg_Group)
Trigger - Turn off (This trigger)
Else - Actions
Custom script: call RemoveLocation(udg_Point[3])
Custom script: call RemoveLocation(udg_Point[4])
Else - Actions
Else - Actions
Warning: Due to the fact that it is a WIP and is very buggy, i HIGHLY recommend that you do NOT insert into your map
Warning2: Do NOT let the hero at the bottom right die if you want to see the WTF Cinematic.