Advanced Pitching Machine
You had always dreamed of blowing up everything with baseballs? Now you can litterally do it!
With this pack of Advanced Pitching Machines, your destruction power is unlimited!
(Also a good way to clean the clones you just made :p)
Any question or problem to use this mod? Click here to read the FAQ.
FEATURES
– A.P.M.: All-in-one Advanced Pitching Machines.
KEYBOARD CONTROLS
– [R]: Fire a baseball.
– [1]: Trigger ball explosion.
– [R]: Hold 1s to start/stop auto-fire.
– [R] + [E]: Hold R and press E multiple times to change the fire rate.
– [R] + [E]: Hold 3s to erase all APM baseballs on the map.
– [Left Ctrl]: Select the next APM.
– ???: Enable/disable guided baseballs.
GAMEPAD CONTROLS
– [Y]: Fire a baseball.
– [LB]: Trigger ball explosion.
– [Y]: Hold 1s to start/stop auto-fire.
– [Y] + [X]: Hold Y and press X multiple times to change the fire rate.
– [Y] + [X]: Hold 3s to erase all APM baseballs on the map.
– [DPadDown]: Select the next APM.
– ???: Enable/disable guided baseballs.
CHARACTERISTICS
– Balls with explosion effects explode when they touch anything.
– Default and minimum fire rate for auto-fire is 1 ball per second.
– Attracting fields stay active for 5 seconds after being triggered.
– Unragdolled body are not attracted by fields.
– You can’t be killed by the black hole.
– When you change the equiped APM, a message will indicate the new APM type.
– Guided baseballs will aim at the pointer.
EASTER EGGS
– This is a basic feature of the game but I don’t think many people know it: As long as you are licking the barbecue, the Pitching Machine will launch flaming balls. Flaming balls set enemies on fire when they touch them.
– Licking a ball and dragging it around could be a good idea ^^
– To enable guided baseballs, you must be ragdolled and hold a certain kEy for a few seconds.
KNOWN BUGS
– Trigger too many balls at the same time can crash the game (array index overflow).
– Sucking some objects in the black hole can crash the game (can happen with the gas station).
– Exploding balls can go through or bounce on certain solid objects without exploding.
– Guided balls may stop being guided if you shoot them while moving.
DEV NOTES
– Added Repulsive APM.
– Added Bouncing APM.
– Added easter egg.
– Improved Repulsive APM code.
– Added new skins for the APM and the balls made by Ryan.
– Added APM Switch.
– Added gamepad support.
– Added multiplayer support.
– Fixed 1.2 compatibility problems.
– Fixed infinite score/XP exploit with Repulsive APM.
– Balls now explode on contact.
– Removed Ryan’s skins (they crashed the game).
– Fixed balls exploding on invisible items.
– Added auto-fire.
– Removed ball limits.
– Added emergency "erase balls" button.
– Fixed compatibility with GoatZ.
– Fixed compatibility with v1.3.3.
– Fixed compatibility with GoatBread.
– Combined all APMs into one mutator.
– Added basic APM.
– Added new colors for each APM type.
– Added Guided Baseballs.
– Reduced lag caused by repulsive baseballs.
– Fixed compatibility with Payday.
– Improved Black Hole destructive power.
– Fixed repulsive balls not working correctly.
– Improved crosshair visibility.
– Optimized some code.
– Fixed compatibility with Waste of Space.
– Fixed broken crosshair on the Waste of Space map.
The code of this mod may seems complicated but its not: Most of it is simple re-use of existing mechanisms like explosions and the Devil Goat power ^^
Exploding and Compactor APM didn’t take much time, everything was working fine and as expected. The Black Hole was the hardest part: Attracting things was okay, but detecting and destroying them was not that easy.
The center of the problem is that most objects are created with the bNoDelete variable set to true, which means you just can’t delete them using the standard function Destroy(). So I had to use a workaround to make object dissapear anyway: If you can’t destroy something, put it where the player can’t see it nor interact with it :p
After trying to implement a new type of fast ball as Bayconboyee suggested, I noticed that a higher velocity for the ball was a bad idea because it would simply miss more objects on its trajectory. So I tried to make a ball able to break glasses anyway and ended up with the Repulsive APM: Those balls produce really short range explosions all the time. To limit the lag and the points generated (permanent explosions generate about 1 point per ball per second) I decided to limitate the ammount of balls in the map to 10. This limitation was a bit harder to implement than expected because Unreal Script simply don’t have static variables -_-
So bad that your skins are no longer working Ryan :/ I had to remove them in the end…
Video featuring this mod by No_More_Hero07.