- Joined
- Dec 12, 2008
- Messages
- 7,385
This system was written long ago by Nestharus, but it was Grave-yarded because the CrashGame function wasn't working.
I made a fix and added a new function: EatRAM
I'm using this resource to make cheating players suffer >
I made a fix and added a new function: EatRAM
JASS:
/**********************************************************
*
* FatalError
* v1.1.2.1
* By Magtheridon96 (Special Thanks to Nestharus)
*
* Uses:
* -----
*
* - Annoying a player. lol
*
* API:
* ----
*
* - function ExitGame takes nothing returns nothing
* - function ExitGameForPlayer takes player p returns nothing
*
* - function FreezeGame takes nothing returns nothing
* - function FreezeGameForPlayer takes player p returns nothing
*
* - function CrashGame takes nothing returns nothing
* - function CrashGameForPlayer takes player p returns nothing
*
* - function DesyncGameForPlayer takes player p returns nothing
*
* - function EatRAM takes nothing returns nothing
* - This function can take up about 1 GB of memory in a minute.
* - Use this on cheaters ;D
* - This function may crash the game at one point.
*
* - function StopThread takes nothing returns nothing
*
**********************************************************/
library FatalError
globals
private trigger Q = CreateTrigger()
endglobals
function ExitGame takes nothing returns nothing
loop
call ExecuteFunc("ExitGame")
endloop
endfunction
function ExitGameForPlayer takes player p returns nothing
if GetLocalPlayer()==p then
call ExitGame()
endif
endfunction
function FreezeGame takes nothing returns nothing
loop
call TriggerSyncReady()
call ExecuteFunc("FreezeGame")
endloop
endfunction
function FreezeGameForPlayer takes player p returns nothing
if GetLocalPlayer()==p then
call FreezeGame()
endif
endfunction
function CrashGame takes nothing returns nothing
call Player(-1)
endfunction
function CrashGameForPlayer takes player p returns nothing
if GetLocalPlayer()==p then
call CrashGame()
endif
endfunction
function DesyncGameForPlayer takes player p returns nothing
if GetLocalPlayer()==p then
call CreateTrigger()
endif
endfunction
private function Z takes nothing returns boolean
local location l
local integer i = 1000
loop
exitwhen 0==i
set l = Location(0,0)
set l = Location(0,0)
set l = Location(0,0)
set i=i-1
endloop
return false
endfunction
function EatRAM takes nothing returns boolean
loop
call TriggerEvaluate(Q)
endloop
return false
endfunction
function StopThread takes nothing returns nothing
local integer i = 1/0
endfunction
private module Init
private static method onInit takes nothing returns nothing
call TriggerAddCondition(Q,Condition(function Z))
endmethod
endmodule
private struct Inits extends array
implement Init
endstruct
endlibrary
I'm using this resource to make cheating players suffer >
Last edited: