I saw a topic by Xantan that included an anti-maphack trigger:
http://forum.wc3edit.net/viewtopic.php?t=628
I know a bit Jass but I got messed up with it.
Can anyone post this single trigger?
AntiMapHack
Moderator: Cheaters
-
- Honorary wc3edit.net Traitor
- Posts: 2507
- Joined: February 1st, 2007, 4:11 pm
- Location: NEVADA
-
- Junior Member
- Posts: 44
- Joined: May 31st, 2007, 12:31 pm
-
- Honorary wc3edit.net Traitor
- Posts: 2507
- Joined: February 1st, 2007, 4:11 pm
- Location: NEVADA
-
- Junior Member
- Posts: 44
- Joined: May 31st, 2007, 12:31 pm
-
- Member
- Posts: 50
- Joined: February 27th, 2007, 11:17 pm
-
- Junior Member
- Posts: 44
- Joined: May 31st, 2007, 12:31 pm
-
- Member
- Posts: 50
- Joined: February 27th, 2007, 11:17 pm
hmm how about this ? It isn't complete but...Xeydo wrote:I have no motivation to post it on other forums, and actually I'm quite selfish so I'll keep it to myself
AsdGod - I'm not sure it's possible, triggers cannot detect when camera sees invi thru program.
Code: Select all
constant function AntiHackDummy takes nothing returns integer
return 'e000'
endfunction
function SafeVision takes nothing returns nothing
call SetUnitAnimationByIndex(udg_u,1)
endfunction
function Anim takes nothing returns nothing
set udg_t=udg_t+0.001
if udg_t==0.025 or (IsUnitVisible(udg_u,GetLocalPlayer()) and udg_t<0.025) then
call SetUnitAnimationByIndex(udg_u,1)
endif
endfunction
function AntiMapHackTime takes timer t returns nothing
set udg_t=0.
call TimerStart(t,0.001,true,function Anim)
call TriggerSleepAction(0.)
call RemoveUnit(udg_u)
call PauseTimer(t)
call DestroyTimer(t)
endfunction
function Trig_AntiMapHack_Actions takes nothing returns nothing
set udg_u=CreateUnit(Player(13),AntiHackDummy(),GetCameraTargetPositionX(),GetCameraTargetPositionY(),0)
if not(IsUnitVisible(udg_u,GetLocalPlayer())) then
call SetUnitAnimationByIndex(udg_u,0)
else
call SetUnitAnimationByIndex(udg_u,1)
endif
call AntiMapHackTime(CreateTimer())
endfunction
//===========================================================================
function InitTrig_AntiMapHack takes nothing returns nothing
set gg_trg_AntiMapHack = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_AntiMapHack, 2.00 )
call TriggerAddAction( gg_trg_AntiMapHack, function Trig_AntiMapHack_Actions )
endfunction

Whoa
-
- Junior Member
- Posts: 44
- Joined: May 31st, 2007, 12:31 pm