Quantcast

Jump to content

» «
Photo

About a stripped Main.scm

6 replies to this topic
yair1221
  • yair1221

    Homie

  • Members
  • Joined: 18 Feb 2010

#1

Posted 02 July 2010 - 09:49 PM

Why when I create a stripped Main.scm some of the functions are still there?
For example: The hangar doors in V. Meadows are still moving when I am there
I wanted to create a special sphere for that
How do I change stuff like that?

Silent
  • Silent

    Moderating Cookie Monster

  • Feroci Racing
  • Joined: 01 Feb 2010
  • Poland
  • Most Helpful [GTA] 2013
    Most Helpful [Modding] 2013
    Most Talented [Modding] 2013
    Best Map 2013 "ViceCityStories PC Edition"
    Best Vehicle 2013 "III Aircraft"
    Most Helpful [Modding] 2012
    Modder of the Year 2012

#2

Posted 02 July 2010 - 09:53 PM Edited by SilentPL, 02 July 2010 - 10:01 PM.

QUOTE (yair1221 @ Jul 2 2010, 23:49)
For example: The hangar doors in V. Meadows are still moving when I am there

Because garages are defined in map files, and its opening is hardcoded.

Edit:
Try to add this somewhere in script:
CODE
Garage.Deactivate('DHANGAR')

yair1221
  • yair1221

    Homie

  • Members
  • Joined: 18 Feb 2010

#3

Posted 04 July 2010 - 10:55 AM Edited by yair1221, 04 July 2010 - 11:06 AM.

Garage Deactivate...OK
But I need to change the garage itself
For example every time the garage will open there will be a sound
All the options I could see were these:

garage.IsClosed() - Only a check,not helping me
garage.IsOpen() - ,,
garage.Activate() - Have no idea what does it means,perhaps if the hangar ever opens or something,still not helping
garage.Deactivate() - ,,
garage.ChangeType() - Dont know what it does
garage.Close() - Possible future applications,not helping right now
garage.Close() - ,,
garage.SetToAcceptCar() - That could be useful,but not helping me right now

How am I supposed to make a sound when the hangars are open?
Which command will be helpful?

Silent
  • Silent

    Moderating Cookie Monster

  • Feroci Racing
  • Joined: 01 Feb 2010
  • Poland
  • Most Helpful [GTA] 2013
    Most Helpful [Modding] 2013
    Most Talented [Modding] 2013
    Best Map 2013 "ViceCityStories PC Edition"
    Best Vehicle 2013 "III Aircraft"
    Most Helpful [Modding] 2012
    Modder of the Year 2012

#4

Posted 04 July 2010 - 12:00 PM

You can check that by memory reading, see:
http://www.gtamoddin...=...resses_(SA)

QUOTE
There are 50 garages in the game. Each garage has:-

Position
Details
Usage information
Location in game
Location of door
Width
Depth
Height
Direction it looks
Coordinates of lower left corner
Coordinates of upper right corner,
Usable by the player
Which property (safe house) it belongs
Number of vehicles which can be parked inside
The door state (closed, opening, open and closing)
These are found in the garage object of 212 bytes. The memory locations where the garages start are:

0x96C048 (start of first garage)
+0xD4 (offset for second garage - offset this much again for third garage, again for fourth, etc.)
0x96C120 (start of final garage)

Here is the known garage offsets:

[...]

+77 = [byte] Garage Door State values:
0 = closed
1 = open
2 = closing
3 = opening

yair1221
  • yair1221

    Homie

  • Members
  • Joined: 18 Feb 2010

#5

Posted 04 July 2010 - 01:09 PM

?!!?!?!!?!?!?!?!?!?!?!
Im Talking About A CLEO Code Not About Changing The Game's Code Itself

TheSiggi
  • TheSiggi

    Surgeon

  • Members
  • Joined: 05 Jul 2009

#6

Posted 04 July 2010 - 01:16 PM

SilentPL too... but about a bit more advanced stuff, its memory hacking

yair1221
  • yair1221

    Homie

  • Members
  • Joined: 18 Feb 2010

#7

Posted 04 July 2010 - 01:18 PM

ok never mind
im lost here




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users