Improve JJCP

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
youkaiz
Newcomer
Posts: 15
Joined: November 15th, 2008, 10:01 am
Title: Map Maker

Improve JJCP

Post by youkaiz »

When i testing my map with JJCP it create lots of leaks with -tele cheat.(because have so many units in my map)
Each time a unit receive a order it create an leak, in RPG maps or maps with many units in can cause havy lag
(default angel handles is +- 4000 handles when use -tele it can create more than 1000 handles per min)

but it can be easy fix.

Search in JJCP for Tele2 and add "call RemoveLocation(k2k)" after endif
Like this:

function Tele2 takes nothing returns nothing
local unit u2u=GetTriggerUnit()
local location k2k=GetOrderPointLoc()
if GetIssuedOrderId()==851990then
call SetUnitPosition(u2u,GetLocationX(k2k),GetLocationY(k2k))
endif
call RemoveLocation(k2k)
set u2u=null
set k2k=null
endfunction

and to improve -nocd you can do this.(to make it like wtf in dota)
firs add unit TempUnit to globals var

search for function ResetCD

replace all function with it:

function ResetCD2 takes nothing returns nothing
call UnitResetCooldown(TempUnit)
call DestroyTimer(GetExpiredTimer())
endfunction
function ResetCD takes nothing returns nothing
set TempUnit = GetTriggerUnit()
call TimerStart(CreateTimer(),0.,false,function ResetCD2)
endfunction

it will wait for next frame to resset unit cooldown
i think it can help to improve JJCP XD
User avatar
Risen
Forum Staff
Posts: 811
Joined: January 1st, 2008, 12:58 am

Re: Improve JJCP

Post by Risen »

Code: Select all

function Tele2 takes nothing returns nothing
local unit u2u=GetTriggerUnit()
local location k2k=GetOrderPointLoc()
if GetIssuedOrderId()==851990then
call SetUnitPosition(u2u,GetLocationX(k2k),GetLocationY(k2k))
endif
set u2u=null
set k2k=null
endfunction

Just search tele2 and do a RemoveLocation call.

It's up to you, I haven't even seen JJ in forever anyways.
Image
Wanna learn to hack maps? --> Guide