Page 1 of 1

Russian Mafia's Factory

Posted: 03 Aug 2012, 11:04
by Greg
Image

[russia] Image
Name: Russian Mafia's Factory
Players: 2-4

[russia] Image
You start the game as a factory worker in the Russian Mafia's Factory with only 10 rockets. When other player died, you get 2-4 rockets! But when you died, you respawn with 10 rockets again. You also can use Fast Reload from conveyors. Don't try to fall into the water tank!

Available stuff:
* Rocket Launcher
* Fast Reload

[russia] Image
Image

[russia] Image
Special thanks to Kostek, Zukan and MikelCraft for testing.
Special thanks to Sektor for helping.

[russia] Image

Re: Russian Mafia's Factory

Posted: 03 Aug 2012, 14:52
by elypter
the map looks nice but i couldnt test it yet.

from Rules for attaching maps thread
MMP file: it is not allowed to have 1 .mmp file for each player count. Remove the PlayerCount line from the mmp and it works with GTA2 versions above 11.39. If your script crashes with different player counts use "IF (CHECK_CHARACTER_HEALTH(p1, 0))".
besides that you should also fix:
*put the files in the root folder instead of a subfolder so that autoinstall is possible
*name the preview image after the gmp so that preview works (seriously why did you make on if it wont show up in the map list?)
*dont name the readme file "readme.txt" so that it wont overwrite other files

im amazed that over and over again people still publish maps like it's 1999. i'm just a bit confused...

anyway at least you used 7zip and not winrar ;)

btw if you want your map in the map system you can ask me for the password

Re: Russian Mafia's Factory

Posted: 03 Aug 2012, 20:38
by Greg
* Readme file - fixed.
* Archive - fixed.
* MMP file - I can't fix it. The game crashes (11.42):
[MapFiles]
GMPFile = rmf.gmp
STYFile = bil.sty
SCRFile = rmf.scr
Description = Russian Mafia's Factory
[mis]
PLAYER_PED gracz1 = ( 136.50, 137.50, 3.00 ) 10 180
PLAYER_PED gracz2 = ( 136.50, 125.50, 3.00 ) 10 0
PLAYER_PED gracz3 = ( 130.50, 131.50, 3.00 ) 10 90
PLAYER_PED gracz4 = ( 142.50, 131.50, 4.00 ) 10 270

GENERATOR fast1 = (130.50, 138.50, 3.00) 0 MOVING_COLLECT_36 99 100
GENERATOR fast2 = (143.50, 137.50, 3.00) 0 MOVING_COLLECT_36 99 100
GENERATOR fast3 = (142.50, 124.50, 3.00) 0 MOVING_COLLECT_36 99 100
GENERATOR fast4 = (129.50, 125.50, 3.00) 0 MOVING_COLLECT_36 99 100

CONVEYOR tasma1 = ( 136.50 , 138.50 , 3.00 ) ( 13.00 , 1.00 ) 1 0
CONVEYOR tasma2 = ( 136.50 , 124.50 , 3.00 ) ( 13.00 , 1.00 ) -1 0
CONVEYOR tasma3 = ( 129.50 , 131.50 , 3.00 ) ( 1.00 , 14.00 ) 0 1
CONVEYOR tasma4 = ( 143.50 , 131.50 , 3.00 ) ( 1.00 , 14.00 ) 0 -1

SET_GANG_INFO (rmgang, 10, PISTOL, SHOTGUN, MACHINE_GUN, 0, 136.50, 131.50, 2.00, 0, BUICK, 28)
MAP_ZONE rmzone = (100, 100, 0, 0, 1000, 0, 0, 0, 900, 0, 900)

COUNTER loop = 1
COUNTER p1died = 0
COUNTER p2died = 0
COUNTER p3died = 0
COUNTER p4died = 0

LEVELSTART

SWITCH_GENERATOR (fast1, ON)
SWITCH_GENERATOR (fast2, ON)
SWITCH_GENERATOR (fast3, ON)
SWITCH_GENERATOR (fast4, ON)

SET_SHADING_LEVEL (20)
SET_AMBIENT_LEVEL (0.30, 3)

LIGHT lewydol1 = ( 131.50 , 139.50 , 2.00 ) 4.75 255 ( 255 , 255 , 255 )
LIGHT lewydol2 = ( 128.50 , 136.50 , 2.00 ) 4.75 255 ( 255 , 255 , 255 )
LIGHT prawydol1 = ( 141.50 , 139.50 , 2.00 ) 4.75 255 ( 255 , 255 , 255 )
LIGHT prawydol2 = ( 144.50 , 136.50 , 2.00 ) 4.75 255 ( 255 , 255 , 255 )
LIGHT lewagora1 = ( 128.50 , 126.50 , 2.00 ) 4.75 255 ( 255 , 255 , 255 )
LIGHT lewagora2 = ( 131.50 , 123.50 , 2.00 ) 4.75 255 ( 255 , 255 , 255 )
LIGHT prawagora1 = ( 141.50 , 123.50 , 2.00 ) 4.75 255 ( 255 , 255 , 255 )
LIGHT prawagora2 = ( 144.50 , 126.50 , 2.00 ) 4.75 255 ( 255 , 255 , 255 )
LIGHT srodek1 = ( 136.50 , 131.50 , 2.00 ) 4.75 50 ( 255 , 255 , 255 )
LIGHT srodek2 = ( 136.50 , 131.50 , 3.00 ) 4.75 50 ( 255 , 255 , 255 )
LIGHT srodek3 = ( 136.50 , 131.50 , 4.00 ) 4.75 50 ( 255 , 255 , 255 )

GIVE_WEAPON ( gracz1 , ROCKET_LAUNCHER , 10 )
GIVE_WEAPON ( gracz2 , ROCKET_LAUNCHER , 10 )
GIVE_WEAPON ( gracz3 , ROCKET_LAUNCHER , 10 )
GIVE_WEAPON ( gracz4 , ROCKET_LAUNCHER , 10 )

WHILE_EXEC ( loop = 1 )

IF ( HAS_CHARACTER_DIED ( gracz1 ))
SET p1died = 1
ELSE
IF ( p1died = 1 )
GIVE_WEAPON ( gracz1, ROCKET_LAUNCHER, 10 )
GIVE_WEAPON ( gracz2, ROCKET_LAUNCHER, 2 )
GIVE_WEAPON ( gracz3, ROCKET_LAUNCHER, 2 )
GIVE_WEAPON ( gracz4, ROCKET_LAUNCHER, 2 )
SET p1died = 0
ENDIF
ENDIF

IF ( HAS_CHARACTER_DIED ( gracz2 ))
SET p2died = 1
ELSE
IF ( p2died = 1 )
GIVE_WEAPON ( gracz1, ROCKET_LAUNCHER, 2 )
GIVE_WEAPON ( gracz2, ROCKET_LAUNCHER, 10 )
GIVE_WEAPON ( gracz3, ROCKET_LAUNCHER, 2 )
GIVE_WEAPON ( gracz4, ROCKET_LAUNCHER, 2 )
SET p2died = 0
ENDIF
ENDIF

IF ( HAS_CHARACTER_DIED ( gracz3 ))
SET p3died = 1
ELSE
IF ( p3died = 1 )
GIVE_WEAPON ( gracz1, ROCKET_LAUNCHER, 2 )
GIVE_WEAPON ( gracz2, ROCKET_LAUNCHER, 2 )
GIVE_WEAPON ( gracz3, ROCKET_LAUNCHER, 10 )
GIVE_WEAPON ( gracz4, ROCKET_LAUNCHER, 2 )
SET p3died = 0
ENDIF
ENDIF

IF ( HAS_CHARACTER_DIED ( gracz4 ))
SET p4died = 1
ELSE
IF ( p4died = 1 )
GIVE_WEAPON ( gracz1, ROCKET_LAUNCHER, 2 )
GIVE_WEAPON ( gracz2, ROCKET_LAUNCHER, 2 )
GIVE_WEAPON ( gracz3, ROCKET_LAUNCHER, 2 )
GIVE_WEAPON ( gracz4, ROCKET_LAUNCHER, 10 )
SET p4died = 0
ENDIF
ENDIF

ENDWHILE

LEVELEND[/mis]

Can somebody help?

Re: Russian Mafia's Factory

Posted: 03 Aug 2012, 20:56
by elypter
elypter wrote:
MMP file: it is not allowed to have 1 .mmp file for each player count. Remove the PlayerCount line from the mmp and it works with GTA2 versions above 11.39. If your script crashes with different player counts use "IF (CHECK_CHARACTER_HEALTH(p1, 0))".
put it around each block in the exec loop. with the correct playername ofc