Collection of gta scripting and map weirdness

Anything to do with GTA1/GTA2 modding (tools, scripts and more).
User avatar
T.M.
Immortal
Posts: 957
Joined: 29 Jan 2010, 15:00
Location: F21B3EED

Re: Collection of gta scripting and map weirdness

Post by T.M. »

B-$hep wrote:Is it just me or this really makes miss2 crash because of the "CHECK_MULTIPLIER_GREATER" ??

[mis]player_ped p1 = ( 44.5 , 102.0 , 2.0 ) 25 0
LEVELSTART
CHECK_MULTIPLIER_GREATER ( p1 , 7 )
LEVELEND[/mis]
Sektor wrote:Yes that crashes the official compiler but I think T.M. found that it works in game if you write it to the SCR file: http://gtamp.com/forum/viewtopic.php?p=5166#p5166 (2011, time flies).

It certainly counts as scripting weirdness.
Oh yeah, we really need a common paper with all the knowledge... its too widespread. Im surprised Sektor even remembered that bug!

User avatar
Sektor
Boss
Boss
Posts: 1383
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: Collection of gta scripting and map weirdness

Post by Sektor »

I had to search the forum for that command to find the post but it did seem familiar. Thanks for volunteering to clean up all the GTA2 documentation :twisted:

User avatar
B-$hep
Immortal
Posts: 543
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: Estonia - Finland

Re: Collection of gta scripting and map weirdness

Post by B-$hep »

I noticed in hex editor that miss2 puts silently "END" string into .scr file. After declaration like this:
[mis]OBJ_DATA rocket1 = (88.0, 110.0) 0 COLLECT_02 15[/mis]


Did you knew?

Docs say that its used only for ex:
[mis]name = CREATE_OBJ ( float X , float Y ) rotation model END[/mis]

NEW CHANGE: certain commands must have an ‘end’ at the end of the line.

Another undocumented stuff?
Always wear safety glasses while programming.

Post Reply