Scripts of Tiny Town, Hidden Surprise and Face Off

Anything to do with GTA1/GTA2 modding (tools, scripts and more).
Post Reply
User avatar
Lantyz
Psycho
Psycho
Posts: 71
Joined: 14 Apr 2009, 08:20
GH nick: Lantyz
Location: The Netherlands
Contact:

Scripts of Tiny Town, Hidden Surprise and Face Off

Post by Lantyz »

I reconstructed the scripts of Tiny Town, Hidden Surprise and Face Off. Feel free to use these to create new versions of the original levels. Please let me know if you find mistakes.

Tiny Town (Map image)

Code: Select all

PLAYER_PED player1 = ( 62.5 , 193.5 , 2.0 ) 10 0
PLAYER_PED player2 = ( 83.5 , 179.5 , 2.0 ) 9 90
PLAYER_PED player3 = ( 115.5 , 169.5 , 2.0 ) 8 270
PLAYER_PED player4 = ( 53.5 , 164.5 , 2.0 ) 6 90
PLAYER_PED player5 = ( 77.5 , 170.5 , 2.0 ) 7 90
PLAYER_PED player6 = ( 84.5 , 192.5 , 2.0 ) 0 270

PARKED_CAR_DATA gta1 = ( 81.8 , 181.5 , 2.0 ) 2 90 GT24640
PARKED_CAR_DATA ztype = ( 81.8 , 182.5 , 2.0 ) 1 90 VTYPE
PARKED_CAR_DATA spritzer = ( 81.8 , 183.5 , 2.0 ) 0 90 SPRITE
PARKED_CAR_DATA bus = ( 88.4 , 182.6 , 2.0 ) -1 180 BUS
PARKED_CAR_DATA beamer = ( 105.5 , 193.5 , 2.0 ) 1 0 BMW
PARKED_CAR_DATA morton = ( 103.5 , 193.5 , 2.0 ) 0 0 MORGAN
PARKED_CAR_DATA arachnid = ( 106.5 , 196.4 , 2.0 ) 0 180 SPIDER
PARKED_CAR_DATA panto = ( 104.5 , 196.4 , 2.0 ) 2 180 FIAT

RADIO_STATION heavenly = STATION_KRISHNA ( 242.5 , 214.5 ) 
RADIO_STATION kgbh = STATION_RUSSIAN ( 201.5 , 21.5 ) 
RADIO_STATION futuro = STATION_ZAIBATSU ( 20.5 , 230.5 ) 
RADIO_STATION lofi = STATION_INDUSTRIAL ( 110.5 , 108.5 ) 

GENERATOR pistol1 = ( 61.0 , 195.0 , 2.0 ) 0 COLLECT_00 6000 6000 40
GENERATOR pistol2 = ( 92.5 , 176.5 , 2.0 ) 0 COLLECT_00 6000 6000 40
GENERATOR dualpistol = ( 50.0 , 177.0 , 2.0 ) 0 COLLECT_10 6000 6000 30
GENERATOR mac1 = ( 71.5 , 170.5 , 3.0 ) 0 COLLECT_01 6000 6000 10
GENERATOR mac2 = ( 111.5 , 170.5 , 2.0 ) 0 COLLECT_01 6000 6000 10
GENERATOR shotgun = ( 78.5 , 192.5 , 2.0 ) 0 COLLECT_06 6000 6000 12
GENERATOR electro = ( 98.0 , 159.0 , 2.0 ) 0 COLLECT_03 6000 6000 6
GENERATOR flamer = ( 60.0 , 186.5 , 4.0 ) 0 COLLECT_08 6000 6000 10
GENERATOR molotovs1 = ( 68.0 , 194.5 , 4.0 ) 0 COLLECT_04 6000 6000 8
GENERATOR molotovs2 = ( 50.5 , 172.5 , 4.0 ) 0 COLLECT_04 6000 6000 8
GENERATOR grenades = ( 98.5 , 188.5 , 2.0 ) 0 COLLECT_05 6000 6000 12
GENERATOR bagoom = ( 114.0 , 195.0 , 2.0 ) 0 COLLECT_02 6000 6000 5

GENERATOR vehmac = ( 118.5 , 177.5 , 2.0 ) 0 COLLECT_18 6000 6000 10
GENERATOR vehmines = ( 73.5 , 179.5 , 5.0 ) 0 COLLECT_17 6000 6000 4
GENERATOR vehoil = ( 61.5 , 175.5 , 2.0 ) 0 COLLECT_16 6000 6000 6

GENERATOR health = ( 62.5 , 171.5 , 4.0 ) 0 COLLECT_30 6000 6000
GENERATOR armor = ( 100.5 , 172.5 , 2.0 ) 0 COLLECT_31 6000 6000
GENERATOR invul = ( 89.5 , 185.5 , 2.0 ) 0 COLLECT_34 6000 6000
GENERATOR gang = ( 63.0 , 184.0 , 2.0 ) 0 COLLECT_40 6000 6000

LEVELSTART

SET_SHADING_LEVEL  ( 27 )
SET_AMBIENT_LEVEL  ( 0.4 , 0 )

SWITCH_GENERATOR ( pistol1 , ON )
SWITCH_GENERATOR ( pistol2 , ON )
SWITCH_GENERATOR ( dualpistol , ON )
SWITCH_GENERATOR ( mac1 , ON )
SWITCH_GENERATOR ( mac2 , ON )
SWITCH_GENERATOR ( shotgun , ON )
SWITCH_GENERATOR ( flamer , ON )
SWITCH_GENERATOR ( electro , ON )
SWITCH_GENERATOR ( bagoom , ON )
SWITCH_GENERATOR ( grenades , ON )
SWITCH_GENERATOR ( molotovs1 , ON )
SWITCH_GENERATOR ( molotovs2 , ON )

SWITCH_GENERATOR ( vehmines , ON )
SWITCH_GENERATOR ( vehoil , ON )
SWITCH_GENERATOR ( vehmac , ON )

SWITCH_GENERATOR ( health , ON )
SWITCH_GENERATOR ( armor , ON )
SWITCH_GENERATOR ( invul , ON )
SWITCH_GENERATOR ( gang , ON )

LEVELEND
Hidden Surprise (Map image)

Code: Select all

PLAYER_PED player1 = ( 146.5 , 17.5 , 2.0 ) 11 0
PLAYER_PED player2 = ( 144.5 , 36.5 , 2.0 ) 13 90
PLAYER_PED player3 = ( 182.5 , 33.5 , 2.0 ) 8 180
PLAYER_PED player4 = ( 204.5 , 27.5 , 2.0 ) 10 90
PLAYER_PED player5 = ( 228.5 , 44.5 , 2.0 ) 9 0
PLAYER_PED player6 = ( 250.5 , 37.5 , 2.0 ) 0 90

RADIO_STATION rockstar = STATION_DOWNTOWN ( 212.5 , 22.5 )
RADIO_STATION futuro = STATION_ZAIBATSU ( 155.5 , 4.5 )
RADIO_STATION funami = STATION_YAKUZA ( 247.5 , 27.5 )
RADIO_STATION lithium = STATION_LOONIE ( 150.5 , 39.5 )

GENERATOR pistol1 = ( 143.5 , 17.5 , 2.0 ) 0 COLLECT_00 6000 6000 40
GENERATOR pistol2 = ( 143.5 , 38.5 , 2.0 ) 0 COLLECT_00 6000 6000 40
GENERATOR dualpistol1 = ( 159.5 , 44.5 , 3.0 ) 0 COLLECT_10 6000 6000 30
GENERATOR dualpistol2 = ( 189.5 , 40.5 , 2.0 ) 0 COLLECT_10 6000 6000 30
GENERATOR dualpistol3 = ( 198.5 , 29.5 , 2.0 ) 0 COLLECT_10 6000 6000 30
GENERATOR mac1 = ( 151.5 , 6.5 , 2.0 ) 0 COLLECT_01 6000 6000 10
GENERATOR mac2 = ( 218.5 , 39.0 , 2.0 ) 0 COLLECT_01 6000 6000 10
GENERATOR mac3 = ( 196.5 , 45.5 , 2.0 ) 0 COLLECT_01 6000 6000 10
GENERATOR shotgun1 = ( 153.5 , 26.5 , 3.0 ) 0 COLLECT_06 6000 6000 12
GENERATOR shotgun2 = ( 197.5 , 17.5 , 2.0 ) 0 COLLECT_06 6000 6000 12
GENERATOR shotgun3 = ( 248.5 , 3.5 , 2.0 ) 0 COLLECT_06 6000 6000 12
GENERATOR flamer = ( 241.5 , 39.5 , 2.0 ) 0 COLLECT_08 6000 6000 10
GENERATOR electro = ( 163.5 , 8.5 , 3.0 ) 0 COLLECT_03 6000 6000 6
GENERATOR bagoom1 = ( 208.5 , 6.5 , 2.0 ) 0 COLLECT_02 6000 6000 5
GENERATOR bagoom2 = ( 228.5 , 31.5 , 2.0 ) 0 COLLECT_02 6000 6000 5
GENERATOR molotovs = ( 216.5 , 18.5 , 2.0 ) 0 COLLECT_04 6000 6000 8
GENERATOR grenades1 = ( 184.5 , 33.5 , 2.0 ) 0 COLLECT_05 6000 6000 12
GENERATOR grenades2 = ( 232.5 , 26.5 , 2.0 ) 0 COLLECT_05 6000 6000 12

GENERATOR vehbomb = ( 229.5 , 12.5 , 2.0 ) 0 COLLECT_15 6000 6000 1
GENERATOR vehoil = ( 246.5 , 22.5 , 2.0 ) 0 COLLECT_16 6000 6000 6
GENERATOR vehmines = ( 200.5 , 35.0 , 5.0 ) 0 COLLECT_17 6000 6000 4
GENERATOR vehmac = ( 170.5 , 28.0 , 4.0 ) 0 COLLECT_18 6000 6000 10

GENERATOR armor = ( 194.5 , 17.5 , 2.0 ) 0 COLLECT_31 6000 6000
GENERATOR dd = ( 219.0 , 32.5 , 2.0 ) 0 COLLECT_35 6000 6000
GENERATOR fr = ( 151.5 , 15.5 , 3.0 ) 0 COLLECT_36 6000 6000
GENERATOR invis = ( 199.5 , 34.5 , 5.0 ) 0 COLLECT_39 6000 6000
GENERATOR gang1 = ( 223.5 , 39.0 , 2.0 ) 0 COLLECT_40 6000 6000
GENERATOR gang2 = ( 175.5 , 8.5 , 2.0 ) 0 COLLECT_40 6000 6000

LEVELSTART

SET_SHADING_LEVEL  ( 27 )
SET_AMBIENT_LEVEL  ( 0.4 , 0 )

SWITCH_GENERATOR ( pistol1 , ON )
SWITCH_GENERATOR ( pistol2 , ON )
SWITCH_GENERATOR ( dualpistol1 , ON )
SWITCH_GENERATOR ( dualpistol2 , ON )
SWITCH_GENERATOR ( dualpistol3 , ON )
SWITCH_GENERATOR ( mac1 , ON )
SWITCH_GENERATOR ( mac2 , ON )
SWITCH_GENERATOR ( mac3 , ON )
SWITCH_GENERATOR ( shotgun1 , ON )
SWITCH_GENERATOR ( shotgun2 , ON )
SWITCH_GENERATOR ( shotgun3 , ON )
SWITCH_GENERATOR ( flamer , ON )
SWITCH_GENERATOR ( electro , ON )
SWITCH_GENERATOR ( bagoom1 , ON )
SWITCH_GENERATOR ( bagoom2 , ON )
SWITCH_GENERATOR ( molotovs , ON )
SWITCH_GENERATOR ( grenades1 , ON )
SWITCH_GENERATOR ( grenades2 , ON )

SWITCH_GENERATOR ( vehbomb , ON )
SWITCH_GENERATOR ( vehoil , ON )
SWITCH_GENERATOR ( vehmines , ON )
SWITCH_GENERATOR ( vehmac , ON )

SWITCH_GENERATOR ( armor , ON )
SWITCH_GENERATOR ( dd , ON )
SWITCH_GENERATOR ( fr , ON )
SWITCH_GENERATOR ( invis , ON )
SWITCH_GENERATOR ( gang1 , ON )
SWITCH_GENERATOR ( gang2 , ON )

LEVELEND
Face Off (Map image)

Code: Select all

PLAYER_PED player1 = ( 44.5 , 201.5 , 5.0 ) 5 135
PLAYER_PED player2 = ( 48.5 , 201.5 , 5.0 ) 7 225
PLAYER_PED player3 = ( 44.5 , 199.5 , 5.0 ) 8 45
PLAYER_PED player4 = ( 48.5 , 199.5 , 5.0 ) 11 315
PLAYER_PED player5 = ( 46.5 , 199.5 , 5.0 ) 13 0
PLAYER_PED player6 = ( 46.5 , 201.5 , 5.0 ) 10 180

RADIO_STATION rockstar = STATION_RESIDENTIAL ( 212.5 , 22.5 )
RADIO_STATION futuro = STATION_ZAIBATSU ( 45.5 , 195.5 )
RADIO_STATION rebel = STATION_REDNECK ( 8.5 , 244.5 )
RADIO_STATION osmosis = STATION_SCIENTIST ( 94.5 , 216.5 )

GENERATOR pistol1 = ( 46.5 , 200.5 , 5.0 ) 0 COLLECT_00 6000 6000 40
GENERATOR pistol2 = ( 83.5 , 209.5 , 2.0 ) 0 COLLECT_00 6000 6000 40
GENERATOR pistol3 = ( 26.5 , 207.5 , 2.0 ) 0 COLLECT_00 6000 6000 40
GENERATOR dualpistol1 = ( 36.5 , 187.5 , 2.0 ) 0 COLLECT_10 6000 6000 30
GENERATOR dualpistol2 = ( 110.5 , 205.5 , 2.0 ) 0 COLLECT_10 6000 6000 30
GENERATOR dualpistol3 = ( 11.5 , 216.5 , 2.0 ) 0 COLLECT_10 6000 6000 30
GENERATOR dualpistol4 = ( 49.5 , 224.5 , 2.0 ) 0 COLLECT_10 6000 6000 30
GENERATOR mac1 = ( 32.0 , 241.5 , 2.0 ) 0 COLLECT_01 6000 6000 10
GENERATOR mac2 = ( 12.5 , 249.5 , 2.0 ) 0 COLLECT_01 6000 6000 10
GENERATOR mac3 = ( 40.5 , 216.5 , 2.0 ) 0 COLLECT_01 6000 6000 10
GENERATOR mac4 = ( 99.5 , 216.5 , 2.0 ) 0 COLLECT_01 6000 6000 10
GENERATOR silmac1 = ( 33.5 , 202.5 , 3.0 ) 0 COLLECT_09 6000 6000 10
GENERATOR silmac2 = ( 102.5 , 250.5 , 2.0 ) 0 COLLECT_09 6000 6000 10
GENERATOR shotgun1 = ( 74.5 , 193.5 , 2.0 ) 0 COLLECT_06 6000 6000 12
GENERATOR shotgun2 = ( 58.5 , 223.5 , 2.0 ) 0 COLLECT_06 6000 6000 12
GENERATOR shotgun3 = ( 99.5 , 222.5 , 2.0 ) 0 COLLECT_06 6000 6000 12
GENERATOR shotgun4 = ( 17.5 , 244.5 , 2.0 ) 0 COLLECT_06 6000 6000 12
GENERATOR flamer = ( 3.5 , 198.5 , 3.0 ) 0 COLLECT_08 6000 6000 10
GENERATOR electro = ( 35.5 , 218.5 , 4.0 ) 0 COLLECT_03 6000 6000 6
GENERATOR bagoom1 = ( 99.5 , 244.5 , 3.0 ) 0 COLLECT_02 6000 6000 5
GENERATOR bagoom2 = ( 4.5 , 227.5 , 2.0 ) 0 COLLECT_02 6000 6000 5
GENERATOR grenades1 = ( 3.5 , 190.5 , 2.0 ) 0 COLLECT_05 6000 6000 12
GENERATOR grenades2 = ( 65.5 , 209.5 , 2.0 ) 0 COLLECT_05 6000 6000 12
GENERATOR grenades3 = ( 72.5 , 244.5 , 2.0 ) 0 COLLECT_05 6000 6000 12
GENERATOR molotovs = ( 105.5 , 229.5 , 3.0 ) 0 COLLECT_04 6000 6000 8

GENERATOR vehmines = ( 59.5 , 201.5 , 2.0 ) 0 COLLECT_17 6000 6000 4
GENERATOR vehoil = ( 95.5 , 191.5 , 2.0 ) 0 COLLECT_16 6000 6000 6
GENERATOR vehmac = ( 69.5 , 250.5 , 2.0 ) 0 COLLECT_18 6000 6000 10
GENERATOR vehbomb = ( 56.5 , 239.5 , 2.0 ) 0 COLLECT_15  6000 6000 1

GENERATOR fingers = ( 18.5 , 198.5 , 3.0 ) 0 COLLECT_37 6000 6000 
GENERATOR fr = ( 82.5 , 207.5 , 2.0 ) 0 COLLECT_36 6000 6000 
GENERATOR health = ( 34.5 , 218.5 , 4.0 ) 0 COLLECT_30 6000 6000 
GENERATOR armor = ( 4.5 , 241.5 , 2.0 ) 0 COLLECT_31 6000 6000 
GENERATOR invul = ( 4.5 , 226.5 , 2.0 ) 0 COLLECT_34 6000 6000
GENERATOR invis = ( 85.0 , 220.5 , 2.0 ) 0 COLLECT_39 6000 6000
GENERATOR gang = ( 54.5 , 249.5 , 2.0 ) 0 COLLECT_40 6000 6000 

LEVELSTART

SET_SHADING_LEVEL  ( 27 )
SET_AMBIENT_LEVEL  ( 0.4 , 0 )

SWITCH_GENERATOR ( pistol1 , ON )
SWITCH_GENERATOR ( pistol2 , ON )
SWITCH_GENERATOR ( pistol3 , ON )
SWITCH_GENERATOR ( dualpistol1 , ON )
SWITCH_GENERATOR ( dualpistol2 , ON )
SWITCH_GENERATOR ( dualpistol3 , ON )
SWITCH_GENERATOR ( dualpistol4 , ON )
SWITCH_GENERATOR ( mac1 , ON )
SWITCH_GENERATOR ( mac2 , ON )
SWITCH_GENERATOR ( mac3 , ON )
SWITCH_GENERATOR ( mac4 , ON )
SWITCH_GENERATOR ( silmac1 , ON )
SWITCH_GENERATOR ( silmac2 , ON )
SWITCH_GENERATOR ( shotgun1 , ON )
SWITCH_GENERATOR ( shotgun2 , ON )
SWITCH_GENERATOR ( shotgun3 , ON )
SWITCH_GENERATOR ( shotgun4 , ON )
SWITCH_GENERATOR ( flamer , ON )
SWITCH_GENERATOR ( electro , ON )
SWITCH_GENERATOR ( bagoom1 , ON )
SWITCH_GENERATOR ( bagoom2 , ON )
SWITCH_GENERATOR ( grenades1 , ON )
SWITCH_GENERATOR ( grenades2 , ON )
SWITCH_GENERATOR ( grenades3 , ON )
SWITCH_GENERATOR ( molotovs , ON )

SWITCH_GENERATOR ( vehmines , ON )
SWITCH_GENERATOR ( vehoil , ON )
SWITCH_GENERATOR ( vehmac , ON )
SWITCH_GENERATOR ( vehbomb , ON )

SWITCH_GENERATOR ( fingers , ON )
SWITCH_GENERATOR ( fr , ON )
SWITCH_GENERATOR ( health , ON )
SWITCH_GENERATOR ( armor , ON )
SWITCH_GENERATOR ( invul , ON )
SWITCH_GENERATOR ( invis , ON )
SWITCH_GENERATOR ( gang , ON )

LEVELEND
Many thanks to B-$hep for his SCR Tool to find the starting positions.

EDITs:
  • delays corrected
  • Radio stations added
  • Some remaps and rotations of PLAYER_PEDs fixed
  • NUMBER_GRAPHIC of the GT-A1 removed; this is set to '8' by default
Last edited by Lantyz on 24 Jan 2010, 21:08, edited 6 times in total.
BenMillard
Immortal
Posts: 890
Joined: 16 May 2009, 06:14
GH nick: BenMillard
Location: London, UK
Contact:

Re: Scripts of Tiny Town, Hidden Surprise and Face Off

Post by BenMillard »

I didn't realise the start positions varied with number of players. We are still learning new things about GTA2, a decade later!

Are the respawn times for the powerups correct? It seems you've set the minimum to be 1 frame shorter than than the maximum. In bil.mis they are the same value:

Code: Select all

GENERATOR generator_kris_easy_machine_gun_powerup = ( 251.5 , 200.5 , 5.0 ) 0 collect_10 1800 1800 15
It feels like multiplayer versions use different weapon respawn times; so they respawn faster when there are more players. Is that true or was I imagining it?

This might explain why they use different MP?-P?.scr files. If everything was the same, they could use the same MP?.scr for all player counts on each level. Even the big multiplayer levels use different *-P?.scr files.

Thanks for working on these. It would be quite easy to create maximum ammo and instant respawn for all the weapons now! :D
User avatar
Lantyz
Psycho
Psycho
Posts: 71
Joined: 14 Apr 2009, 08:20
GH nick: Lantyz
Location: The Netherlands
Contact:

Re: Scripts of Tiny Town, Hidden Surprise and Face Off

Post by Lantyz »

BenMillard wrote:I didn't realise the start positions varied with number of players. We are still learning new things about GTA2, a decade later!
This seems to be only the case with Face Off. It probably has something to do with getting the optimal 'face off'-stance for each player count, but I haven't really gotten into this yet.
Are the respawn times for the powerups correct? It seems you've set the minimum to be 1 frame shorter than than the maximum. In bil.mis they are the same value
1799 1800 is simply the respawn time I use for all my maps, since it feels like a decent delay. I never realised the min and max could be the same value. I just clocked it: 1799 1800 gives a delay of 84 seconds (normal speed). The weapons in the actual script spawn with a delay of 70 seconds, so the values should be slightly lower.
It feels like multiplayer versions use different weapon respawn times; so they respawn faster when there are more players. Is that true or was I imagining it?
I clocked the delays of 2p and 6p of the rocket launcher in Tiny Town: they're both 70 seconds.
User avatar
Gustavob
Immortal
Posts: 407
Joined: 18 May 2009, 21:40
GH nick: Gustavob
|Gustavob|
Location: Nowhere.
Contact:

Re: Scripts of Tiny Town, Hidden Surprise and Face Off

Post by Gustavob »

Lantyz wrote: The weapons in the actual script spawn with a delay of 70 seconds, so the values should be slightly lower.
Thats weird. I clocked the Rocket Launcher in Tiny Town and it respawned after 50 seconds. But I assume you clocked in Face Off? Still, you said 1799 1800 give a 84 seconds delay for you. I made a test on a .mis file I'm making, and tried to make 50 seconds for weapon respawning time. 6000 6000 delay makes this, exactly 50 seconds, with game running at 30FPS, wich is normal speed, wich also says that 120 game cycles = 1 second. I always thought that 30 game cycles = one second, since normal speed is 30 FPS, one game cycle could be one frame. But I can be wrong about this all.
You just lost the game.
User avatar
Lantyz
Psycho
Psycho
Posts: 71
Joined: 14 Apr 2009, 08:20
GH nick: Lantyz
Location: The Netherlands
Contact:

Re: Scripts of Tiny Town, Hidden Surprise and Face Off

Post by Lantyz »

Thats weird. I clocked the Rocket Launcher in Tiny Town and it respawned after 50 seconds. But I assume you clocked in Face Off?
I clocked the rocket launcher in Tiny Town, but I did the same with some other weapons (the initial pistol in Face Off, for example) and they were all the same. My guess is that all weapons in at least these three levels have the same delay. That the delay in the standard levels differ on your and mine PC isn't that surprising; cycles obviously can't be simply boiled down to universal seconds. Same with the time limit for multiplayer games: it rarely is the actual time set by the host.

I ran a test with delay 6000 6000 and guess what? The weapon spawned beautifully at 70 seconds, just like in the standard game. So I guess this is in fact the 'official' delay for weapons in multiplayer.
So the next thing I tried was 1800 1800, which spawns weapons every 22 seconds. This makes sense: 22 is roughly a third of 70, just as 1800 is of 6000. Apparently the min and max should be identical to get predictable spawns.
Last edited by Lantyz on 30 Dec 2009, 00:58, edited 2 times in total.
User avatar
Gustavob
Immortal
Posts: 407
Joined: 18 May 2009, 21:40
GH nick: Gustavob
|Gustavob|
Location: Nowhere.
Contact:

Re: Scripts of Tiny Town, Hidden Surprise and Face Off

Post by Gustavob »

So that means that using a different delays in min_delay and in max_delay creates a shorter delay then when using the same delay for both min_- and max_delay.. Cool, one more thing I learned :P. It just looks like using different times in min_- and max_delay would just give the game options of respawning the weapon in any time between those two times, but now it looks like it doesnt. Anyway you said you tried with 6000 6000 and you got 70 seconds, but I still get 50. Why?
You just lost the game.
User avatar
Sektor
Boss
Boss
Posts: 1431
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: Scripts of Tiny Town, Hidden Surprise and Face Off

Post by Sektor »

The time will vary depending on how fast your computer runs the game, it might be quicker in 11.2 since Vike turned off some limiters and MMP start could be different to proper singleplayer start. You can also choose the game speed when starting from MMP but you can't do that when starting singleplayer (only frame limiter on or off).
User avatar
Lantyz
Psycho
Psycho
Posts: 71
Joined: 14 Apr 2009, 08:20
GH nick: Lantyz
Location: The Netherlands
Contact:

Re: Scripts of Tiny Town, Hidden Surprise and Face Off

Post by Lantyz »

This is what GTA2 Scripting.doc has to say about the delay:
Generators create new objects of a given type at regular intervals. [...] Needs [...] two ‘delays’. These give a minimum/maximum time between each object creation. If set the same, objects will be created at a regular interval.

mindelay: an integer describing the minimum length of game cycles between creation. Valid range is 0 to 65535 cycles. Should be divisible by 4.
maxdelay: an integer describing the maximum length of game cycles between creation.
This seems to describe just what you said, Gustavob, but it seems like it simply doesn't work correctly. I also can't find any GENERATORs in bil.mis with a different mindelay and maxdelay, so perhaps it's a feature that was ultimately left out.
User avatar
Lantyz
Psycho
Psycho
Posts: 71
Joined: 14 Apr 2009, 08:20
GH nick: Lantyz
Location: The Netherlands
Contact:

Re: Scripts of Tiny Town, Hidden Surprise and Face Off

Post by Lantyz »

BenMillard wrote:I didn't realise the start positions varied with number of players.
I ran through all the start positions of Face Off, and they're the same after all; it was merely a bug in the SCR Tool (fixed in latest version). Seems like we're back to square one for figuring out why each player count has its own script.

I fixed the generator delays, added the radio stations and made some small adjustments to the remaps and rotations of the PLAYER_PEDs. The scripts may not yet be perfect, but we're getting close!
BenMillard
Immortal
Posts: 890
Joined: 16 May 2009, 06:14
GH nick: BenMillard
Location: London, UK
Contact:

Re: Scripts of Tiny Town, Hidden Surprise and Face Off

Post by BenMillard »

Also on B-$hep's blog: GTA2 SCR Tool 2.0.
BenMillard
Immortal
Posts: 890
Joined: 16 May 2009, 06:14
GH nick: BenMillard
Location: London, UK
Contact:

Re: Scripts of Tiny Town, Hidden Surprise and Face Off

Post by BenMillard »

Thanks for such thorough and open work, Lantyz. I used your positions to set up my tests for Tiny Tiny Town Arena version.
User avatar
elypter
Immortal
Posts: 1119
Joined: 26 Dec 2009, 23:53
GH nick: elypter

Re: Scripts of Tiny Town, Hidden Surprise and Face Off

Post by elypter »

thanks, i used the face off script as base for tiny face off script
yur sa'nok ngeyä
User avatar
Sektor
Boss
Boss
Posts: 1431
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: Scripts of Tiny Town, Hidden Surprise and Face Off

Post by Sektor »

The latest Epic Map Editor has an SCR decompiler option, so these could be made even more accurate. It's so much easier to recreate a script without the mis file now.
User avatar
Sektor
Boss
Boss
Posts: 1431
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: Scripts of Tiny Town, Hidden Surprise and Face Off

Post by Sektor »

The number of PLAYER_PEDs really is the only difference between the 5 mis files DMA Design made for each multiplayer map.

Tiny Town
[syntax=mis]
// Decompiled from "MP1-6P.scr" Using Epic GTA2 Script Decompiler by T.M.

PLAYER_PED p1 = (62.50, 193.50, 2.00) 10 0
PLAYER_PED p2 = (83.50, 179.50, 2.00) 9 90
PLAYER_PED p3 = (115.50, 169.50, 2.00) 8 270
PLAYER_PED p4 = (53.50, 164.50, 2.00) 6 0
PLAYER_PED p5 = (77.50, 170.50, 2.00) 7 90
PLAYER_PED p6 = (84.50, 192.50, 2.00) 11 270

RADIO_STATION radio1 = STATION_KRISHNA (242.50, 214.50)
RADIO_STATION radio2 = STATION_RUSSIAN (201.50, 21.50)
RADIO_STATION radio3 = STATION_ZAIBATSU (20.50, 230.50)
RADIO_STATION radio4 = STATION_INDUSTRIAL (110.50, 108.50)

PARKED_CAR_DATA auto1 = (81.90, 183.50, 255.00) 0 90 SPRITE
PARKED_CAR_DATA auto2 = (81.90, 182.50, 255.00) 1 90 VTYPE
PARKED_CAR_DATA auto3 = (81.90, 181.50, 255.00) 2 90 GT24640
PARKED_CAR_DATA auto4 = (88.40, 182.60, 255.00) 0 180 BUS
PARKED_CAR_DATA auto5 = (103.50, 193.60, 255.00) 0 0 MORGAN
PARKED_CAR_DATA auto6 = (105.50, 193.60, 255.00) 1 0 BMW
PARKED_CAR_DATA auto7 = (104.50, 196.40, 255.00) 2 180 FIAT
PARKED_CAR_DATA auto8 = (106.50, 196.40, 255.00) 0 180 SPIDER

MAP_ZONE pedzone1

GENERATOR gen1 = (59.90, 186.50, 4.00) 0 COLLECT_08 6000 6000 10
GENERATOR gen2 = (73.50, 179.50, 5.00) 0 COLLECT_17 6000 6000 4
GENERATOR gen3 = (71.50, 170.50, 3.00) 0 COLLECT_01 6000 6000 10
GENERATOR gen4 = (118.50, 177.50, 2.00) 0 COLLECT_18 8000 8000 10
GENERATOR gen5 = (113.90, 195.00, 2.00) 0 COLLECT_02 6000 6000 5
GENERATOR gen6 = (89.50, 185.50, 2.00) 0 COLLECT_34 6000 6000 4
GENERATOR gen7 = (60.90, 195.00, 2.00) 0 COLLECT_00 6000 6000 40
GENERATOR gen8 = (100.50, 172.50, 2.00) 0 COLLECT_31 6000 6000 3
GENERATOR gen9 = (97.90, 158.90, 2.00) 0 COLLECT_03 8000 8000 6
GENERATOR gen10 = (49.90, 176.90, 2.00) 0 COLLECT_10 6000 6000 30
GENERATOR gen11 = (111.50, 170.50, 2.00) 0 COLLECT_01 6000 6000 10
GENERATOR gen12 = (50.50, 172.50, 4.00) 0 COLLECT_04 6000 6000 8
GENERATOR gen13 = (62.90, 184.00, 2.00) 0 COLLECT_40 6000 6000 2
GENERATOR gen14 = (78.50, 192.50, 2.00) 0 COLLECT_06 6000 6000 12
GENERATOR gen15 = (92.50, 176.50, 2.00) 0 COLLECT_00 6000 6000 40
GENERATOR gen16 = (98.50, 188.50, 2.00) 0 COLLECT_05 6000 6000 12
GENERATOR gen17 = (61.50, 175.50, 2.00) 0 COLLECT_16 6000 6000 6
GENERATOR gen18 = (68.00, 194.50, 4.00) 0 COLLECT_04 6000 6000 8
GENERATOR gen19 = (62.50, 171.50, 4.00) 0 COLLECT_30 6000 6000 3

LEVELSTART

SET_AMBIENT_LEVEL (0.40, 0)

SWITCH_GENERATOR (gen1, ON)
SWITCH_GENERATOR (gen2, ON)
SWITCH_GENERATOR (gen3, ON)
SWITCH_GENERATOR (gen4, ON)
SWITCH_GENERATOR (gen5, ON)
SWITCH_GENERATOR (gen6, ON)
SWITCH_GENERATOR (gen7, ON)
SWITCH_GENERATOR (gen8, ON)
SWITCH_GENERATOR (gen9, ON)
SWITCH_GENERATOR (gen10, ON)
SWITCH_GENERATOR (gen11, ON)
SWITCH_GENERATOR (gen12, ON)
SWITCH_GENERATOR (gen13, ON)
SWITCH_GENERATOR (gen14, ON)
SWITCH_GENERATOR (gen15, ON)
SWITCH_GENERATOR (gen16, ON)
SWITCH_GENERATOR (gen17, ON)
SWITCH_GENERATOR (gen18, ON)
SWITCH_GENERATOR (gen19, ON)

SET_PEDDENSITY (pedzone1, 1000)

LEVELEND
[/syntax]
Hidden Surprise
[syntax=mis]
// Decompiled from "MP2-6P.scr" Using Epic GTA2 Script Decompiler by T.M.

PLAYER_PED p1 = (146.50, 17.50, 2.00) 11 0
PLAYER_PED p2 = (144.50, 36.50, 2.00) 13 90
PLAYER_PED p3 = (182.50, 33.50, 2.00) 8 180
PLAYER_PED p4 = (204.50, 27.50, 2.00) 10 270
PLAYER_PED p5 = (228.50, 44.50, 2.00) 9 0
PLAYER_PED p6 = (250.50, 37.50, 2.00) 5 90

RADIO_STATION radio1 = STATION_ZAIBATSU (253.50, 2.50)
RADIO_STATION radio2 = STATION_LOONIE (3.50, 2.50)
RADIO_STATION radio3 = STATION_YAKUZA (2.50, 253.50)
RADIO_STATION radio4 = STATION_DOWNTOWN (125.50, 80.50)

GENERATOR gen1 = (151.50, 6.50, 2.00) 0 COLLECT_01 6000 6000 10
GENERATOR gen2 = (189.50, 4.50, 2.00) 0 COLLECT_16 6000 6000 6
GENERATOR gen3 = (159.50, 44.50, 3.00) 0 COLLECT_10 6000 6000 30
GENERATOR gen4 = (195.50, 52.50, 2.00) 0 COLLECT_04 6000 6000 8
GENERATOR gen5 = (246.50, 22.50, 2.00) 0 COLLECT_16 6000 6000 6
GENERATOR gen6 = (216.50, 18.50, 2.00) 0 COLLECT_04 6000 6000 8
GENERATOR gen7 = (241.50, 39.50, 2.00) 0 COLLECT_08 6000 6000 10
GENERATOR gen8 = (248.50, 3.50, 2.00) 0 COLLECT_06 6000 6000 12
GENERATOR gen9 = (208.50, 6.50, 2.00) 0 COLLECT_02 6000 6000 5
GENERATOR gen10 = (194.50, 17.50, 2.00) 0 COLLECT_31 6000 6000 1
GENERATOR gen11 = (170.50, 28.00, 4.00) 0 COLLECT_18 6000 6000 10
GENERATOR gen12 = (153.50, 26.50, 3.00) 0 COLLECT_06 6000 6000 12
GENERATOR gen13 = (200.50, 35.00, 5.00) 0 COLLECT_17 6000 6000 4
GENERATOR gen14 = (218.50, 39.00, 2.00) 0 COLLECT_01 6000 6000 10
GENERATOR gen15 = (175.50, 8.50, 2.00) 0 COLLECT_40 6000 6000 8
GENERATOR gen16 = (219.00, 32.50, 2.00) 0 COLLECT_35 6000 6000 6
GENERATOR gen17 = (143.50, 38.50, 2.00) 0 COLLECT_00 6000 6000 40
GENERATOR gen18 = (184.50, 33.50, 2.00) 0 COLLECT_05 6000 6000 12
GENERATOR gen19 = (191.50, 23.50, 2.00) 0 COLLECT_00 6000 6000 40
GENERATOR gen20 = (163.50, 8.50, 3.00) 0 COLLECT_03 6000 6000 6
GENERATOR gen21 = (143.50, 17.50, 2.00) 0 COLLECT_00 6000 6000 40
GENERATOR gen22 = (151.50, 15.50, 3.00) 0 COLLECT_36 6000 6000 3
GENERATOR gen23 = (189.50, 40.50, 2.00) 0 COLLECT_10 6000 6000 30
GENERATOR gen24 = (199.50, 34.50, 5.00) 0 COLLECT_39 12000 12000 3
GENERATOR gen25 = (229.50, 12.50, 2.00) 0 COLLECT_15 6000 6000 1
GENERATOR gen26 = (196.50, 45.50, 2.00) 0 COLLECT_01 6000 6000 10
GENERATOR gen27 = (198.50, 29.50, 2.00) 0 COLLECT_10 6000 6000 30
GENERATOR gen28 = (228.50, 31.50, 2.00) 0 COLLECT_02 6000 6000 5
GENERATOR gen29 = (232.50, 26.50, 2.00) 0 COLLECT_05 6000 6000 12
GENERATOR gen30 = (197.50, 17.50, 2.00) 0 COLLECT_06 6000 6000 12
GENERATOR gen31 = (223.50, 39.00, 2.00) 0 COLLECT_40 6000 6000 4

LEVELSTART

SET_AMBIENT_LEVEL (0.40, 0)

SWITCH_GENERATOR (gen1, ON)
SWITCH_GENERATOR (gen2, ON)
SWITCH_GENERATOR (gen3, ON)
SWITCH_GENERATOR (gen4, ON)
SWITCH_GENERATOR (gen5, ON)
SWITCH_GENERATOR (gen6, ON)
SWITCH_GENERATOR (gen7, ON)
SWITCH_GENERATOR (gen8, ON)
SWITCH_GENERATOR (gen9, ON)
SWITCH_GENERATOR (gen10, ON)
SWITCH_GENERATOR (gen11, ON)
SWITCH_GENERATOR (gen12, ON)
SWITCH_GENERATOR (gen13, ON)
SWITCH_GENERATOR (gen14, ON)
SWITCH_GENERATOR (gen15, ON)
SWITCH_GENERATOR (gen16, ON)
SWITCH_GENERATOR (gen17, ON)
SWITCH_GENERATOR (gen18, ON)
SWITCH_GENERATOR (gen19, ON)
SWITCH_GENERATOR (gen20, ON)
SWITCH_GENERATOR (gen21, ON)
SWITCH_GENERATOR (gen22, ON)
SWITCH_GENERATOR (gen23, ON)
SWITCH_GENERATOR (gen24, ON)
SWITCH_GENERATOR (gen25, ON)
SWITCH_GENERATOR (gen26, ON)
SWITCH_GENERATOR (gen27, ON)
SWITCH_GENERATOR (gen28, ON)
SWITCH_GENERATOR (gen29, ON)
SWITCH_GENERATOR (gen30, ON)
SWITCH_GENERATOR (gen31, ON)

LEVELEND
[/syntax]
Face Off
[syntax=mis]
// Decompiled from "MP5-6P.scr" Using Epic GTA2 Script Decompiler by T.M.

PLAYER_PED p1 = (44.50, 201.50, 5.00) 5 135
PLAYER_PED p2 = (48.50, 201.50, 5.00) 7 225
PLAYER_PED p3 = (44.50, 199.50, 5.00) 8 45
PLAYER_PED p4 = (48.50, 199.50, 5.00) 11 315
PLAYER_PED p5 = (46.50, 199.50, 5.00) 13 0
PLAYER_PED p6 = (46.50, 201.50, 5.00) 10 180

RADIO_STATION radio1 = STATION_ZAIBATSU (247.50, 67.50)
RADIO_STATION radio2 = STATION_REDNECK (41.50, 48.50)
RADIO_STATION radio3 = STATION_SCIENTIST (211.50, 229.50)
RADIO_STATION radio4 = STATION_RESIDENTIAL (166.50, 103.50)

GENERATOR gen1 = (36.50, 187.50, 2.00) 0 COLLECT_10 6000 6000 30
GENERATOR gen2 = (46.50, 200.50, 5.00) 0 COLLECT_00 6000 6000 40
GENERATOR gen3 = (3.50, 198.50, 3.00) 0 COLLECT_08 6000 6000 10
GENERATOR gen4 = (4.50, 227.50, 2.00) 0 COLLECT_02 6000 6000 5
GENERATOR gen5 = (3.50, 190.50, 2.00) 0 COLLECT_05 6000 6000 12
GENERATOR gen6 = (99.50, 244.50, 3.00) 0 COLLECT_02 6000 6000 5
GENERATOR gen7 = (35.50, 218.50, 4.00) 0 COLLECT_03 6000 6000 6
GENERATOR gen8 = (72.50, 244.50, 2.00) 0 COLLECT_05 6000 6000 12
GENERATOR gen9 = (69.50, 250.50, 2.00) 0 COLLECT_18 6000 6000 10
GENERATOR gen10 = (99.50, 216.50, 2.00) 0 COLLECT_01 6000 6000 10
GENERATOR gen11 = (110.50, 205.50, 2.00) 0 COLLECT_10 6000 6000 30
GENERATOR gen12 = (95.50, 191.50, 2.00) 0 COLLECT_16 6000 6000 6
GENERATOR gen13 = (74.50, 193.50, 2.00) 0 COLLECT_06 6000 6000 12
GENERATOR gen14 = (40.50, 216.50, 2.00) 0 COLLECT_01 6000 6000 10
GENERATOR gen15 = (26.50, 207.50, 2.00) 0 COLLECT_00 6000 6000 40
GENERATOR gen16 = (58.50, 223.50, 2.00) 0 COLLECT_06 6000 6000 12
GENERATOR gen17 = (4.50, 241.50, 2.00) 0 COLLECT_31 6000 6000 3
GENERATOR gen18 = (105.50, 229.50, 3.00) 0 COLLECT_04 6000 6000 8
GENERATOR gen19 = (12.50, 249.50, 2.00) 0 COLLECT_01 6000 6000 10
GENERATOR gen20 = (82.50, 207.50, 2.00) 0 COLLECT_36 6000 6000 4
GENERATOR gen21 = (54.50, 249.50, 2.00) 0 COLLECT_40 6000 6000 4
GENERATOR gen22 = (59.50, 201.50, 2.00) 0 COLLECT_17 6000 6000 4
GENERATOR gen23 = (34.50, 218.50, 4.00) 0 COLLECT_30 6000 6000 3
GENERATOR gen24 = (18.50, 198.50, 3.00) 0 COLLECT_37 6000 6000 3
GENERATOR gen25 = (33.50, 202.50, 3.00) 0 COLLECT_09 6000 6000 10
GENERATOR gen26 = (65.50, 209.50, 2.00) 0 COLLECT_05 6000 6000 12
GENERATOR gen27 = (49.50, 224.50, 2.00) 0 COLLECT_10 6000 6000 30
GENERATOR gen28 = (17.50, 244.50, 2.00) 0 COLLECT_06 6000 6000 12
GENERATOR gen29 = (32.00, 241.50, 2.00) 0 COLLECT_01 6000 6000 10
GENERATOR gen30 = (4.50, 226.50, 2.00) 0 COLLECT_34 6000 6000 4
GENERATOR gen31 = (11.50, 216.50, 2.00) 0 COLLECT_10 6000 6000 30
GENERATOR gen32 = (83.50, 209.50, 2.00) 0 COLLECT_00 6000 6000 40
GENERATOR gen33 = (99.50, 222.50, 2.00) 0 COLLECT_06 6000 6000 12
GENERATOR gen34 = (102.50, 250.50, 2.00) 0 COLLECT_09 6000 6000 10
GENERATOR gen35 = (56.50, 239.50, 2.00) 0 COLLECT_15 6000 6000 1
GENERATOR gen36 = (84.90, 220.50, 2.00) 0 COLLECT_39 12000 12000 1

LEVELSTART

SET_AMBIENT_LEVEL (0.40, 0)

SWITCH_GENERATOR (gen1, ON)
SWITCH_GENERATOR (gen2, ON)
SWITCH_GENERATOR (gen3, ON)
SWITCH_GENERATOR (gen4, ON)
SWITCH_GENERATOR (gen5, ON)
SWITCH_GENERATOR (gen6, ON)
SWITCH_GENERATOR (gen7, ON)
SWITCH_GENERATOR (gen8, ON)
SWITCH_GENERATOR (gen9, ON)
SWITCH_GENERATOR (gen10, ON)
SWITCH_GENERATOR (gen11, ON)
SWITCH_GENERATOR (gen12, ON)
SWITCH_GENERATOR (gen13, ON)
SWITCH_GENERATOR (gen14, ON)
SWITCH_GENERATOR (gen15, ON)
SWITCH_GENERATOR (gen16, ON)
SWITCH_GENERATOR (gen17, ON)
SWITCH_GENERATOR (gen18, ON)
SWITCH_GENERATOR (gen19, ON)
SWITCH_GENERATOR (gen20, ON)
SWITCH_GENERATOR (gen21, ON)
SWITCH_GENERATOR (gen22, ON)
SWITCH_GENERATOR (gen23, ON)
SWITCH_GENERATOR (gen24, ON)
SWITCH_GENERATOR (gen25, ON)
SWITCH_GENERATOR (gen26, ON)
SWITCH_GENERATOR (gen27, ON)
SWITCH_GENERATOR (gen28, ON)
SWITCH_GENERATOR (gen29, ON)
SWITCH_GENERATOR (gen30, ON)
SWITCH_GENERATOR (gen31, ON)
SWITCH_GENERATOR (gen32, ON)
SWITCH_GENERATOR (gen33, ON)
SWITCH_GENERATOR (gen34, ON)
SWITCH_GENERATOR (gen35, ON)
SWITCH_GENERATOR (gen36, ON)

LEVELEND
[/syntax]
Galactic Boy
Immortal
Posts: 334
Joined: 15 Apr 2012, 08:26

Re: Scripts of Tiny Town, Hidden Surprise and Face Off

Post by Galactic Boy »

How did you find this .mis files? :)
User avatar
Gustavob
Immortal
Posts: 407
Joined: 18 May 2009, 21:40
GH nick: Gustavob
|Gustavob|
Location: Nowhere.
Contact:

Re: Scripts of Tiny Town, Hidden Surprise and Face Off

Post by Gustavob »

Galactic Boy wrote:How did you find this .mis files? :)
:
Lantyz wrote:I reconstructed the scripts [...].

[...]

Many thanks to B-$hep for his SCR Tool to find the starting positions.
Sektor wrote:// Decompiled from "MP1-6P.scr" Using Epic GTA2 Script Decompiler by T.M.

[...]

// Decompiled from "MP2-6P.scr" Using Epic GTA2 Script Decompiler by T.M.

[...]

// Decompiled from "MP5-6P.scr" Using Epic GTA2 Script Decompiler by T.M.
...
You just lost the game.
Post Reply