How to hack maps without any locals under function main?

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
Reenadoom
Junior Member
Posts: 31
Joined: October 20th, 2007, 5:51 pm
Title: Sexy Beast

How to hack maps without any locals under function main?

Post by Reenadoom »

How do i hack a map without any locals under function main?
This is what i found

Code: Select all

function main takes nothing returns nothing
call SetCameraBounds(-11520.0+GetCameraMargin(CAMERA_MARGIN_LEFT),-13824.0+GetCameraMargin(CAMERA_MARGIN_BOTTOM),11520.0-GetCameraMargin(CAMERA_MARGIN_RIGHT),13312.0-GetCameraMargin(CAMERA_MARGIN_TOP),-11520.0+GetCameraMargin(CAMERA_MARGIN_LEFT),13312.0-GetCameraMargin(CAMERA_MARGIN_TOP),11520.0-GetCameraMargin(CAMERA_MARGIN_RIGHT),-13824.0+GetCameraMargin(CAMERA_MARGIN_BOTTOM))
call SetDayNightModels("Environment\\DNC\\DNCLordaeron\\DNCLordaeronTerrain\\DNCLordaeronTerrain.mdl","Environment\\DNC\\DNCLordaeron\\DNCLordaeronUnit\\DNCLordaeronUnit.mdl")
call NewSoundEnvironment("Default")
call SetAmbientDaySound("LordaeronWinterDay")
call SetAmbientNightSound("LordaeronWinterNight")
call SetMapMusic("Music",true,0)
call CreateRegions()
call CreateAllUnits()
call InitBlizzard()
call InitGlobals()
call InitCustomTriggers()
call RunInitializationTriggers()
Image ImageImageImageImage
If u take the Blue Pill, Your life will be normal as usual and u will not recall any of this. If u take the Red Pill, You will venture into the world of FREE movies. U can send me a request, i can cheat the map for u with JJ's cheatpack and single player for rpgs :)
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4445
Joined: November 19th, 2007, 5:05 am
Been thanked: 2 times

Re: How to hack maps without any locals under function main?

Post by Bartimaeus »

Spoiler:
Reenadoom wrote:How do i hack a map without any locals under function main?
This is what i found

Code: Select all

function main takes nothing returns nothing
call SetCameraBounds(-11520.0+GetCameraMargin(CAMERA_MARGIN_LEFT),-13824.0+GetCameraMargin(CAMERA_MARGIN_BOTTOM),11520.0-GetCameraMargin(CAMERA_MARGIN_RIGHT),13312.0-GetCameraMargin(CAMERA_MARGIN_TOP),-11520.0+GetCameraMargin(CAMERA_MARGIN_LEFT),13312.0-GetCameraMargin(CAMERA_MARGIN_TOP),11520.0-GetCameraMargin(CAMERA_MARGIN_RIGHT),-13824.0+GetCameraMargin(CAMERA_MARGIN_BOTTOM))
call SetDayNightModels("Environment\\DNC\\DNCLordaeron\\DNCLordaeronTerrain\\DNCLordaeronTerrain.mdl","Environment\\DNC\\DNCLordaeron\\DNCLordaeronUnit\\DNCLordaeronUnit.mdl")
call NewSoundEnvironment("Default")
call SetAmbientDaySound("LordaeronWinterDay")
call SetAmbientNightSound("LordaeronWinterNight")
call SetMapMusic("Music",true,0)
call CreateRegions()
call CreateAllUnits()
call InitBlizzard()
call InitGlobals()
call InitCustomTriggers()
call RunInitializationTriggers()
Uhh...do what your normally do...unless you mean no globals/endglobals...
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Re: How to hack maps without any locals under function main?

Post by Xantan »

add your locals after and 1 line below 'function main takes nothing returns nothing'

then add your cheats usually at the bottom of the function main, above endfunction, or wherever, just after the locals.