wc3edit.net

United Warcraft 3 map hacking!
It is currently March 28th, 2024, 10:29 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Improve JJCP
PostPosted: May 6th, 2009, 7:29 am 
Offline
Newcomer
User avatar

Joined: November 15th, 2008, 10:01 am
Posts: 17
Title: Map Maker
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

_________________
Image
http://youkaiz.blogspot.com/


Top
 Profile  
 
 Post subject: Re: Improve JJCP
PostPosted: May 7th, 2009, 12:07 am 
Offline
Forum Staff
User avatar

Joined: January 1st, 2008, 12:58 am
Posts: 862
Code:
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO


Privacy Policy Statement
Impressum (German)