General talk about editing, cheating, and deprotecting maps.
Moderator: Cheaters
Reenadoom
Junior Member
Posts: 31 Joined: October 20th, 2007, 5:51 pm
Title: Sexy Beast
Post
by Reenadoom » January 14th, 2008, 1:01 am
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()
Bartimaeus
Tyrannical Drama Queen
Posts: 4445 Joined: November 19th, 2007, 5:05 am
Been thanked: 2 times
Post
by Bartimaeus » January 14th, 2008, 1:09 am
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...
Xantan
Honorary wc3edit.net Traitor
Posts: 2507 Joined: February 1st, 2007, 4:11 pm
Location: NEVADA
Post
by Xantan » January 14th, 2008, 10:43 am
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.