Berserk()
From ElectronicWar
| Function information for berserk() | |
| Function | berserk() |
| Parameters | N/A |
| API | Attack |
| Cost | $1500 |
| Level | 40 |
| CPU Usage | 5 |
| Description | Performs a double attack, but also hurt your own port. |
[edit] Basic Attack Example
berserk();
If placed in the continue event of an attack script would make each hit deal double damage. However, using berserk in this way puts your system/port at a greater risk of overheating.
[edit] Advanced Attack Example
Controlling how and when berserk is called in your attack script is quite important. Not only will it stop it from being called when your near to overheating, but also give you a small advantage over the other player:
if(getCPULoad()/getMaximumCPULoad() < 0.8){ berserk(); }
If placed in the continue event of your attack script would only use berserk if your CPU load is less than 80 percent and therefore, preventing it from overheating your system.

