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!
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.
causes him to lose control of his char if taken out of his car by another char (cop or another player), and to attack this char until he dies. Meanwhile, you be able only to jump or change your weapon.
It's funny because this bug allow you (actually your possessed char) to kill people by punching, which is normally impossible. And it happens in multiplayer as well!
Bus stops only spawn Buses at Z 1 or 2, not any height above that. No slopes should be on the road in-between the stop and the Bus spawn or on the stop itself.
In addition, having any solid tile at any height above the bus stop or the road in-between the bus stop and the Bus spawn will cause buses to never spawn either.
If the road the Bus comes from starts at a T-junction, the Bus might spawn facing the wrong way and never reach the stop. Having traffic arrows going towards the bus stop for the entire line of the road from the first tile of the T-junction will prevent this.
For some reason generator respawn delays in-game only take 1/4th the numbers of cycles you input in the script if you make min and max value the same, while if it's different it'll be a properly random time in-between (in SP it will always take the same amount of time for first spawn). Somehow I don't remember seeing this mentioned anywhere before.
Haha, reading through all these scripting and map weirdness examples in GTA2 is such a trip. That thing with CHECK_MULTIPLIER_GREATER crashing the compiler but still running fine in-game if written directly into the SCR file feels so bizarre, yet kind of cool in its own way.
I honestly agree with the idea of making a “common paper” to gather all these quirks and bugs, because right now all the knowledge feels scattered around different posts.
By the way, while checking this out it randomly reminded me of Roblox — has anyone here ever tried a Roblox apk mod just for fun? I heard some mods make it super easy to test things on mobile. Anyway, back to GTA2 scripting, this stuff is just too fascinating.