Página 1 de 1

[SA] Peds suicidas

Enviado: 16 Jun 2018, 22:20
por HybridTheory
Este mod adiciona a possibilidade (25%) de ver um pedestre se jogando de um prédio, ponte, etc em diferentes locais de San Andreas. (Los Santos, San Fierro e Las Venturas). São um total de 19 locais diferentes.


Você pode ver um mapa dos lugares aqui.


SourceAbrir
Código grande PRA CARALHO :feel: .

Código: Selecionar tudo

SCRIPT_START
{

    LVAR_INT scplayer hChar hTaskSequence iDay[2] iChance onMission
    LVAR_FLOAT x y z

    GET_PLAYER_CHAR 0 (scplayer)

////////////////////////////////////////////////// Loop principal

    WHILE TRUE
        WAIT 0

        READ_MEMORY 0x96ABA0 1 0 onMission
        IF onMission = FALSE

            IF LOCATE_CHAR_ANY_MEANS_3D scplayer 1444.866577 -1301.381226 35.265625 50.0 50.0 50.0 FALSE
                GET_CURRENT_DAY_OF_WEEK iDay[0]
                IF CLEO_CALL Randomize 0 25
                AND NOT iDay[0] = iDay[1]
                    GOSUB hSuicideChar1
                ENDIF
            ENDIF

            IF LOCATE_CHAR_ANY_MEANS_3D scplayer 1877.607666 -1326.685303 44.492188 40.0 40.0 40.0 FALSE
                GET_CURRENT_DAY_OF_WEEK iDay[0]
                IF CLEO_CALL Randomize 0 25
                AND NOT iDay[0] = iDay[1]
                    GOSUB hSuicideChar2
                ENDIF
            ENDIF

            IF LOCATE_CHAR_ANY_MEANS_3D scplayer 1444.467651 -1426.913818 35.960938 40.0 40.0 40.0 FALSE
                GET_CURRENT_DAY_OF_WEEK iDay[0]
                IF CLEO_CALL Randomize 0 25
                AND NOT iDay[0] = iDay[1]
                    GOSUB hSuicideChar3
                ENDIF
            ENDIF

            IF LOCATE_CHAR_ANY_MEANS_3D scplayer 331.346680 -1512.159058 76.539063 40.0 40.0 40.0 FALSE
                GET_CURRENT_DAY_OF_WEEK iDay[0]
                IF CLEO_CALL Randomize 0 25
                AND NOT iDay[0] = iDay[1]
                    GOSUB hSuicideChar4
                ENDIF
            ENDIF

            IF LOCATE_CHAR_ANY_MEANS_3D scplayer 1208.406616 -1283.552002 63.506615 40.0 40.0 40.0 FALSE
                GET_CURRENT_DAY_OF_WEEK iDay[0]
                IF CLEO_CALL Randomize 0 25
                AND NOT iDay[0] = iDay[1]
                    GOSUB hSuicideChar5
                ENDIF
            ENDIF

            IF LOCATE_CHAR_ANY_MEANS_3D scplayer 154.455078 -1948.632202 45.645081 40.0 40.0 40.0 FALSE
                GET_CURRENT_DAY_OF_WEEK iDay[0]
                IF CLEO_CALL Randomize 0 25
                AND NOT iDay[0] = iDay[1]
                    GOSUB hSuicideChar6
                ENDIF
            ENDIF

            IF LOCATE_CHAR_ANY_MEANS_3D scplayer 1593.216675 -1128.994751 58.257813 40.0 40.0 40.0 FALSE
                GET_CURRENT_DAY_OF_WEEK iDay[0]
                IF CLEO_CALL Randomize 0 25
                AND NOT iDay[0] = iDay[1]
                    GOSUB hSuicideChar7
                ENDIF
            ENDIF

            IF LOCATE_CHAR_ANY_MEANS_3D scplayer 2228.738037 -2468.581543 45.510422 40.0 40.0 40.0 FALSE
                GET_CURRENT_DAY_OF_WEEK iDay[0]
                IF CLEO_CALL Randomize 0 25
                AND NOT iDay[0] = iDay[1]
                    GOSUB hSuicideChar8
                ENDIF
            ENDIF

            IF LOCATE_CHAR_ANY_MEANS_3D scplayer -1854.871582 -237.749237 49.646774 40.0 40.0 40.0 FALSE
                GET_CURRENT_DAY_OF_WEEK iDay[0]
                IF CLEO_CALL Randomize 0 25
                AND NOT iDay[0] = iDay[1]
                    GOSUB hSuicideChar9
                ENDIF
            ENDIF

            IF LOCATE_CHAR_ANY_MEANS_3D scplayer -1569.017700 98.636055 46.444855 40.0 40.0 40.0 FALSE
                GET_CURRENT_DAY_OF_WEEK iDay[0]
                IF CLEO_CALL Randomize 0 25
                AND NOT iDay[0] = iDay[1]
                    GOSUB hSuicideChar10
                ENDIF
            ENDIF

            IF LOCATE_CHAR_ANY_MEANS_3D scplayer -2661.997559 1791.796021 66.442703 40.0 40.0 40.0 FALSE
                GET_CURRENT_DAY_OF_WEEK iDay[0]
                IF CLEO_CALL Randomize 0 25
                AND NOT iDay[0] = iDay[1]
                    GOSUB hSuicideChar11
                ENDIF
            ENDIF

            IF LOCATE_CHAR_ANY_MEANS_3D scplayer -1592.513550 753.076782 80.225479 40.0 40.0 40.0 FALSE
                GET_CURRENT_DAY_OF_WEEK iDay[0]
                IF CLEO_CALL Randomize 0 25
                AND NOT iDay[0] = iDay[1]
                    GOSUB hSuicideChar12
                ENDIF
            ENDIF

            IF LOCATE_CHAR_ANY_MEANS_3D scplayer -1912.866943 828.013184 77.701187 40.0 40.0 40.0 FALSE
                GET_CURRENT_DAY_OF_WEEK iDay[0]
                IF CLEO_CALL Randomize 0 25
                AND NOT iDay[0] = iDay[1]
                    GOSUB hSuicideChar13
                ENDIF
            ENDIF

            IF LOCATE_CHAR_ANY_MEANS_3D scplayer -2422.564209 816.503418 65.774353 40.0 40.0 40.0 FALSE
                GET_CURRENT_DAY_OF_WEEK iDay[0]
                IF CLEO_CALL Randomize 0 25
                AND NOT iDay[0] = iDay[1]
                    GOSUB hSuicideChar14
                ENDIF
            ENDIF

            IF LOCATE_CHAR_ANY_MEANS_3D scplayer 1049.135132 1024.524658 57.343750 40.0 40.0 40.0 FALSE
                GET_CURRENT_DAY_OF_WEEK iDay[0]
                IF CLEO_CALL Randomize 0 25
                AND NOT iDay[0] = iDay[1]
                    GOSUB hSuicideChar15
                ENDIF
            ENDIF

            IF LOCATE_CHAR_ANY_MEANS_3D scplayer 2352.176270 1383.690796 49.835777 40.0 40.0 40.0 FALSE
                GET_CURRENT_DAY_OF_WEEK iDay[0]
                IF CLEO_CALL Randomize 0 25
                AND NOT iDay[0] = iDay[1]
                    GOSUB hSuicideChar16
                ENDIF
            ENDIF

            IF LOCATE_CHAR_ANY_MEANS_3D scplayer 2177.991211 1503.383179 24.131025 40.0 40.0 40.0 FALSE
                GET_CURRENT_DAY_OF_WEEK iDay[0]
                IF CLEO_CALL Randomize 0 25
                AND NOT iDay[0] = iDay[1]
                    GOSUB hSuicideChar17
                ENDIF
            ENDIF

            IF LOCATE_CHAR_ANY_MEANS_3D scplayer 1427.834351 2074.768311 29.690739 40.0 40.0 40.0 FALSE
                GET_CURRENT_DAY_OF_WEEK iDay[0]
                IF CLEO_CALL Randomize 0 25
                AND NOT iDay[0] = iDay[1]
                    GOSUB hSuicideChar18
                ENDIF
            ENDIF

            IF LOCATE_CHAR_ANY_MEANS_3D scplayer 1731.528687 1249.735962 40.066055 40.0 40.0 40.0 FALSE
                GET_CURRENT_DAY_OF_WEEK iDay[0]
                IF CLEO_CALL Randomize 0 25
                AND NOT iDay[0] = iDay[1]
                    GOSUB hSuicideChar19
                ENDIF
            ENDIF
        ENDIF
    ENDWHILE



//////////////////////////////////////////////////

////////////////////////////////////////////////// Los Santos

    hSuicideChar1:
    REQUEST_MODEL HFYST
    LOAD_ALL_MODELS_NOW

    CREATE_CHAR PEDTYPE_CIVFEMALE HFYST 1444.866577 -1301.381226 35.265625 (hChar)
    MARK_MODEL_AS_NO_LONGER_NEEDED HFYST

    SET_CHAR_HEADING (hChar) 268.215698

    OPEN_SEQUENCE_TASK (hTaskSequence)
    TASK_STAND_STILL -1 5000
    TASK_JUMP -1 TRUE
    CLOSE_SEQUENCE_TASK (hTaskSequence)
    PERFORM_SEQUENCE_TASK hChar (hTaskSequence)
    CLEAR_SEQUENCE_TASK (hTaskSequence)

    WHILE LOCATE_CHAR_ANY_MEANS_3D scplayer 1444.866577 -1301.381226 35.265625 50.0 50.0 50.0 FALSE
        WAIT 0
    ENDWHILE

    MARK_CHAR_AS_NO_LONGER_NEEDED (hChar)
    iDay[1] = iDay[0]

    RETURN

    hSuicideChar2:
    REQUEST_MODEL WMYBMX
    LOAD_ALL_MODELS_NOW
    CREATE_CHAR PEDTYPE_CIVMALE WMYBMX 1877.607666 -1326.685303 44.492188 (hChar)
    MARK_MODEL_AS_NO_LONGER_NEEDED WMYBMX
    SET_CHAR_HEADING (hChar) 178.673752

    OPEN_SEQUENCE_TASK (hTaskSequence)
    TASK_STAND_STILL -1 5000
    TASK_JUMP -1 TRUE
    CLOSE_SEQUENCE_TASK (hTaskSequence)
    PERFORM_SEQUENCE_TASK hChar (hTaskSequence)
    CLEAR_SEQUENCE_TASK (hTaskSequence)

    WHILE LOCATE_CHAR_ANY_MEANS_3D scplayer 1877.607666 -1326.685303 44.492188 40.0 40.0 40.0 FALSE
        WAIT 0
    ENDWHILE

    MARK_CHAR_AS_NO_LONGER_NEEDED (hChar)
    iDay[1] = iDay[0]

    RETURN

    hSuicideChar3:
    REQUEST_MODEL HMYRI
    LOAD_ALL_MODELS_NOW
    CREATE_CHAR PEDTYPE_CIVMALE HMYRI 1444.467651 -1426.913818 35.960938 (hChar)
    MARK_MODEL_AS_NO_LONGER_NEEDED HMYRI
    SET_CHAR_HEADING (hChar) 269.445709

    OPEN_SEQUENCE_TASK (hTaskSequence)
    TASK_STAND_STILL -1 5000
    TASK_JUMP -1 TRUE
    CLOSE_SEQUENCE_TASK (hTaskSequence)
    PERFORM_SEQUENCE_TASK hChar (hTaskSequence)
    CLEAR_SEQUENCE_TASK (hTaskSequence)

    WHILE LOCATE_CHAR_ANY_MEANS_3D scplayer 1444.467651 -1426.913818 35.960938 50.0 50.0 50.0 FALSE
        WAIT 0
    ENDWHILE

    MARK_CHAR_AS_NO_LONGER_NEEDED (hChar)
    iDay[1] = iDay[0]

    RETURN

    hSuicideChar4:
    REQUEST_MODEL OMORI
    LOAD_ALL_MODELS_NOW
    CREATE_CHAR PEDTYPE_CIVMALE OMORI 331.346680 -1512.159058 76.539063 (hChar)
    MARK_MODEL_AS_NO_LONGER_NEEDED OMORI
    SET_CHAR_HEADING (hChar) 229.095627

    OPEN_SEQUENCE_TASK (hTaskSequence)
    TASK_STAND_STILL -1 5000
    TASK_JUMP -1 TRUE
    CLOSE_SEQUENCE_TASK (hTaskSequence)
    PERFORM_SEQUENCE_TASK hChar (hTaskSequence)
    CLEAR_SEQUENCE_TASK (hTaskSequence)

    WHILE LOCATE_CHAR_ANY_MEANS_3D scplayer 331.346680 -1512.159058 76.539063 50.0 50.0 50.0 FALSE
        WAIT 0
    ENDWHILE

    MARK_CHAR_AS_NO_LONGER_NEEDED (hChar)
    iDay[1] = iDay[0]

    RETURN

    hSuicideChar5:
    REQUEST_MODEL OMYST
    LOAD_ALL_MODELS_NOW
    CREATE_CHAR PEDTYPE_CIVMALE OMYST 1208.406616 -1283.552002 63.506615 (hChar)
    MARK_MODEL_AS_NO_LONGER_NEEDED OMYST
    SET_CHAR_HEADING (hChar) 122.454124

    OPEN_SEQUENCE_TASK (hTaskSequence)
    TASK_STAND_STILL -1 5000
    TASK_JUMP -1 TRUE
    CLOSE_SEQUENCE_TASK (hTaskSequence)
    PERFORM_SEQUENCE_TASK hChar (hTaskSequence)
    CLEAR_SEQUENCE_TASK (hTaskSequence)

    WHILE LOCATE_CHAR_ANY_MEANS_3D scplayer 1208.406616 -1283.552002 63.506615 50.0 50.0 50.0 FALSE
        WAIT 0
    ENDWHILE

    MARK_CHAR_AS_NO_LONGER_NEEDED (hChar)
    iDay[1] = iDay[0]

    RETURN

    hSuicideChar6:
    REQUEST_MODEL BMYBE
    LOAD_ALL_MODELS_NOW
    CREATE_CHAR PEDTYPE_CIVMALE BMYBE 154.455078 -1948.632202 45.645081 (hChar)
    MARK_MODEL_AS_NO_LONGER_NEEDED BMYBE
    SET_CHAR_HEADING (hChar) 348.972870

    OPEN_SEQUENCE_TASK (hTaskSequence)
    TASK_STAND_STILL -1 5000
    TASK_JUMP -1 TRUE
    CLOSE_SEQUENCE_TASK (hTaskSequence)
    PERFORM_SEQUENCE_TASK hChar (hTaskSequence)
    CLEAR_SEQUENCE_TASK (hTaskSequence)

    WHILE LOCATE_CHAR_ANY_MEANS_3D scplayer 154.455078 -1948.632202 45.645081 50.0 50.0 50.0 FALSE
        WAIT 0
    ENDWHILE

    MARK_CHAR_AS_NO_LONGER_NEEDED (hChar)
    iDay[1] = iDay[0]

    RETURN

    hSuicideChar7:
    REQUEST_MODEL BMOTR1
    LOAD_ALL_MODELS_NOW
    CREATE_CHAR PEDTYPE_CIVMALE BMOTR1 1593.216675 -1128.994751 58.257813 (hChar)
    MARK_MODEL_AS_NO_LONGER_NEEDED BMOTR1
    SET_CHAR_HEADING (hChar) 111.220909

    OPEN_SEQUENCE_TASK (hTaskSequence)
    TASK_STAND_STILL -1 5000
    TASK_JUMP -1 TRUE
    CLOSE_SEQUENCE_TASK (hTaskSequence)
    PERFORM_SEQUENCE_TASK hChar (hTaskSequence)
    CLEAR_SEQUENCE_TASK (hTaskSequence)

    WHILE LOCATE_CHAR_ANY_MEANS_3D scplayer 1593.216675 -1128.994751 58.257813 50.0 50.0 50.0 FALSE
        WAIT 0
    ENDWHILE

    MARK_CHAR_AS_NO_LONGER_NEEDED (hChar)
    iDay[1] = iDay[0]

    RETURN

    hSuicideChar8:
    REQUEST_MODEL WMYCON
    LOAD_ALL_MODELS_NOW
    CREATE_CHAR PEDTYPE_CIVMALE WMYCON 2228.738037 -2468.581543 45.510422 (hChar)
    MARK_MODEL_AS_NO_LONGER_NEEDED WMYCON
    SET_CHAR_HEADING (hChar) 179.504868

    OPEN_SEQUENCE_TASK (hTaskSequence)
    TASK_STAND_STILL -1 5000
    TASK_JUMP -1 TRUE
    CLOSE_SEQUENCE_TASK (hTaskSequence)
    PERFORM_SEQUENCE_TASK hChar (hTaskSequence)
    CLEAR_SEQUENCE_TASK (hTaskSequence)

    WHILE LOCATE_CHAR_ANY_MEANS_3D scplayer 2228.738037 -2468.581543 45.510422 50.0 50.0 50.0 FALSE
        WAIT 0
    ENDWHILE

    MARK_CHAR_AS_NO_LONGER_NEEDED (hChar)
    iDay[1] = iDay[0]

    RETURN

//////////////////////////////////////////////////

////////////////////////////////////////////////// San Fierro
    hSuicideChar9:
    REQUEST_MODEL SWMYST
    LOAD_ALL_MODELS_NOW
    CREATE_CHAR PEDTYPE_CIVMALE SWMYST -1854.871582 -237.749237 49.646774 (hChar)
    MARK_MODEL_AS_NO_LONGER_NEEDED SWMYST
    SET_CHAR_HEADING (hChar) 266.315796

    OPEN_SEQUENCE_TASK (hTaskSequence)
    TASK_STAND_STILL -1 5000
    TASK_JUMP -1 TRUE
    CLOSE_SEQUENCE_TASK (hTaskSequence)
    PERFORM_SEQUENCE_TASK hChar (hTaskSequence)
    CLEAR_SEQUENCE_TASK (hTaskSequence)

    WHILE LOCATE_CHAR_ANY_MEANS_3D scplayer -1854.871582 -237.749237 49.646774 50.0 50.0 50.0 FALSE
        WAIT 0
    ENDWHILE

    MARK_CHAR_AS_NO_LONGER_NEEDED (hChar)
    iDay[1] = iDay[0]

    RETURN

    hSuicideChar10:
    REQUEST_MODEL BMYCON
    LOAD_ALL_MODELS_NOW
    CREATE_CHAR PEDTYPE_CIVMALE BMYCON -1569.017700 98.636055 46.444855 (hChar)
    MARK_MODEL_AS_NO_LONGER_NEEDED BMYCON
    SET_CHAR_HEADING (hChar) 143.087708

    OPEN_SEQUENCE_TASK (hTaskSequence)
    TASK_STAND_STILL -1 5000
    TASK_JUMP -1 TRUE
    CLOSE_SEQUENCE_TASK (hTaskSequence)
    PERFORM_SEQUENCE_TASK hChar (hTaskSequence)
    CLEAR_SEQUENCE_TASK (hTaskSequence)

    WHILE LOCATE_CHAR_ANY_MEANS_3D scplayer -1569.017700 98.636055 46.444855 50.0 50.0 50.0 FALSE
        WAIT 0
    ENDWHILE

    MARK_CHAR_AS_NO_LONGER_NEEDED (hChar)
    iDay[1] = iDay[0]

    RETURN

    hSuicideChar11:
    REQUEST_MODEL OFYST
    LOAD_ALL_MODELS_NOW
    CREATE_CHAR PEDTYPE_CIVMALE OFYST -2661.997559 1791.796021 66.442703 (hChar)
    MARK_MODEL_AS_NO_LONGER_NEEDED OFYST
    SET_CHAR_HEADING (hChar) 270.000000

    OPEN_SEQUENCE_TASK (hTaskSequence)
    TASK_STAND_STILL -1 5000
    TASK_JUMP -1 TRUE
    CLOSE_SEQUENCE_TASK (hTaskSequence)
    PERFORM_SEQUENCE_TASK hChar (hTaskSequence)
    CLEAR_SEQUENCE_TASK (hTaskSequence)

    WHILE LOCATE_CHAR_ANY_MEANS_3D scplayer -2661.997559 1791.796021 66.442703 50.0 50.0 50.0 FALSE
        WAIT 0
    ENDWHILE

    MARK_CHAR_AS_NO_LONGER_NEEDED (hChar)
    iDay[1] = iDay[0]

    RETURN

    hSuicideChar12:
    REQUEST_MODEL SBMORI
    LOAD_ALL_MODELS_NOW
    CREATE_CHAR PEDTYPE_CIVMALE SBMORI -1592.513550 753.076782 80.225479 (hChar)
    MARK_MODEL_AS_NO_LONGER_NEEDED SBMORI
    SET_CHAR_HEADING (hChar) 269.353424

    OPEN_SEQUENCE_TASK (hTaskSequence)
    TASK_STAND_STILL -1 5000
    TASK_JUMP -1 TRUE
    CLOSE_SEQUENCE_TASK (hTaskSequence)
    PERFORM_SEQUENCE_TASK hChar (hTaskSequence)
    CLEAR_SEQUENCE_TASK (hTaskSequence)

    WHILE LOCATE_CHAR_ANY_MEANS_3D scplayer -1592.513550 753.076782 80.225479 50.0 50.0 50.0 FALSE
        WAIT 0
    ENDWHILE

    MARK_CHAR_AS_NO_LONGER_NEEDED (hChar)
    iDay[1] = iDay[0]

    RETURN

    hSuicideChar13:
    REQUEST_MODEL WFYBURG
    LOAD_ALL_MODELS_NOW
    CREATE_CHAR PEDTYPE_CIVMALE WFYBURG -1912.866943 828.013184 77.701187 (hChar)
    MARK_MODEL_AS_NO_LONGER_NEEDED WFYBURG
    SET_CHAR_HEADING (hChar) 358.920868

    OPEN_SEQUENCE_TASK (hTaskSequence)
    TASK_STAND_STILL -1 5000
    TASK_JUMP -1 TRUE
    CLOSE_SEQUENCE_TASK (hTaskSequence)
    PERFORM_SEQUENCE_TASK hChar (hTaskSequence)
    CLEAR_SEQUENCE_TASK (hTaskSequence)

    WHILE LOCATE_CHAR_ANY_MEANS_3D scplayer -1912.866943 828.013184 77.701187 50.0 50.0 50.0 FALSE
        WAIT 0
    ENDWHILE

    MARK_CHAR_AS_NO_LONGER_NEEDED (hChar)
    iDay[1] = iDay[0]

    RETURN

    hSuicideChar14:
    REQUEST_MODEL WFYCLOT
    LOAD_ALL_MODELS_NOW
    CREATE_CHAR PEDTYPE_CIVMALE WFYCLOT -2422.564209 816.503418 65.774353 (hChar)
    MARK_MODEL_AS_NO_LONGER_NEEDED WFYCLOT
    SET_CHAR_HEADING (hChar) 184.079147

    OPEN_SEQUENCE_TASK (hTaskSequence)
    TASK_STAND_STILL -1 5000
    TASK_JUMP -1 TRUE
    CLOSE_SEQUENCE_TASK (hTaskSequence)
    PERFORM_SEQUENCE_TASK hChar (hTaskSequence)
    CLEAR_SEQUENCE_TASK (hTaskSequence)

    WHILE LOCATE_CHAR_ANY_MEANS_3D scplayer -2422.564209 816.503418 65.774353 50.0 50.0 50.0 FALSE
        WAIT 0
    ENDWHILE

    MARK_CHAR_AS_NO_LONGER_NEEDED (hChar)
    iDay[1] = iDay[0]

    RETURN

//////////////////////////////////////////////////

////////////////////////////////////////////////// Las Venturas

    hSuicideChar15:
    REQUEST_MODEL VWMYCD
    LOAD_ALL_MODELS_NOW
    CREATE_CHAR PEDTYPE_CIVMALE VWMYCD 1049.135132 1024.524658 57.343750 (hChar)
    MARK_MODEL_AS_NO_LONGER_NEEDED VWMYCD
    SET_CHAR_HEADING (hChar) 317.176941

    OPEN_SEQUENCE_TASK (hTaskSequence)
    TASK_STAND_STILL -1 5000
    TASK_JUMP -1 TRUE
    CLOSE_SEQUENCE_TASK (hTaskSequence)
    PERFORM_SEQUENCE_TASK hChar (hTaskSequence)
    CLEAR_SEQUENCE_TASK (hTaskSequence)

    WHILE LOCATE_CHAR_ANY_MEANS_3D scplayer 1049.135132 1024.524658 57.343750 50.0 50.0 50.0 FALSE
        WAIT 0
    ENDWHILE

    MARK_CHAR_AS_NO_LONGER_NEEDED (hChar)
    iDay[1] = iDay[0]

    RETURN

    hSuicideChar16:
    REQUEST_MODEL VHMYELV
    LOAD_ALL_MODELS_NOW
    CREATE_CHAR PEDTYPE_CIVMALE VHMYELV 2352.176270 1383.690796 49.835777 (hChar)
    MARK_MODEL_AS_NO_LONGER_NEEDED VHMYELV
    SET_CHAR_HEADING (hChar) 226.889557

    OPEN_SEQUENCE_TASK (hTaskSequence)
    TASK_STAND_STILL -1 5000
    TASK_JUMP -1 TRUE
    CLOSE_SEQUENCE_TASK (hTaskSequence)
    PERFORM_SEQUENCE_TASK hChar (hTaskSequence)
    CLEAR_SEQUENCE_TASK (hTaskSequence)

    WHILE LOCATE_CHAR_ANY_MEANS_3D scplayer 2352.176270 1383.690796 49.835777 50.0 50.0 50.0 FALSE
        WAIT 0
    ENDWHILE

    MARK_CHAR_AS_NO_LONGER_NEEDED (hChar)
    iDay[1] = iDay[0]

    RETURN

    hSuicideChar17:
    REQUEST_MODEL VBFYCRP
    LOAD_ALL_MODELS_NOW
    CREATE_CHAR PEDTYPE_CIVMALE VBFYCRP 2177.991211 1503.383179 24.131025 (hChar)
    MARK_MODEL_AS_NO_LONGER_NEEDED VBFYCRP
    SET_CHAR_HEADING (hChar) 268.539551

    OPEN_SEQUENCE_TASK (hTaskSequence)
    TASK_STAND_STILL -1 5000
    TASK_JUMP -1 TRUE
    CLOSE_SEQUENCE_TASK (hTaskSequence)
    PERFORM_SEQUENCE_TASK hChar (hTaskSequence)
    CLEAR_SEQUENCE_TASK (hTaskSequence)

    WHILE LOCATE_CHAR_ANY_MEANS_3D scplayer 2177.991211 1503.383179 24.131025 50.0 50.0 50.0 FALSE
        WAIT 0
    ENDWHILE

    MARK_CHAR_AS_NO_LONGER_NEEDED (hChar)
    iDay[1] = iDay[0]

    RETURN

    hSuicideChar18:
    REQUEST_MODEL VHFYPRO
    LOAD_ALL_MODELS_NOW
    CREATE_CHAR PEDTYPE_CIVMALE VHFYPRO 1427.834351 2074.768311 29.690739 (hChar)
    MARK_MODEL_AS_NO_LONGER_NEEDED VHFYPRO
    SET_CHAR_HEADING (hChar) 177.358795

    OPEN_SEQUENCE_TASK (hTaskSequence)
    TASK_STAND_STILL -1 5000
    TASK_JUMP -1 TRUE
    CLOSE_SEQUENCE_TASK (hTaskSequence)
    PERFORM_SEQUENCE_TASK hChar (hTaskSequence)
    CLEAR_SEQUENCE_TASK (hTaskSequence)

    WHILE LOCATE_CHAR_ANY_MEANS_3D scplayer 1427.834351 2074.768311 29.690739 50.0 50.0 50.0 FALSE
        WAIT 0
    ENDWHILE

    MARK_CHAR_AS_NO_LONGER_NEEDED (hChar)
    iDay[1] = iDay[0]

    RETURN

    hSuicideChar19:
    REQUEST_MODEL BMYAP
    LOAD_ALL_MODELS_NOW
    CREATE_CHAR PEDTYPE_CIVMALE BMYAP 1731.528687 1249.735962 40.066055 (hChar)
    MARK_MODEL_AS_NO_LONGER_NEEDED BMYAP
    SET_CHAR_HEADING (hChar) 356.274200

    OPEN_SEQUENCE_TASK (hTaskSequence)
    TASK_STAND_STILL -1 5000
    TASK_JUMP -1 TRUE
    CLOSE_SEQUENCE_TASK (hTaskSequence)
    PERFORM_SEQUENCE_TASK hChar (hTaskSequence)
    CLEAR_SEQUENCE_TASK (hTaskSequence)

    WHILE LOCATE_CHAR_ANY_MEANS_3D scplayer 1731.528687 1249.735962 40.066055 50.0 50.0 50.0 FALSE
        WAIT 0
    ENDWHILE

    MARK_CHAR_AS_NO_LONGER_NEEDED (hChar)
    iDay[1] = iDay[0]

    RETURN

//////////////////////////////////////////////////

}
SCRIPT_END

{
    LVAR_INT iPercent
    LVAR_INT iEnd iRandom

    Randomize:
    GENERATE_RANDOM_INT_IN_RANGE 1 101 (iRandom)
    IS_THING_GREATER_THAN_THING iPercent iRandom
    CLEO_RETURN 0
}


[SA] Peds suicidas.7z
(1.18 KiB) Baixado 52 vezes
[SA] Peds suicidas.7z
(1.18 KiB) Baixado 52 vezes

[SA] Peds suicidas

Enviado: 16 Jun 2018, 23:00
por Pierre
tu olha e parece simples e tals, mas OLHA O TAMANHO DESSE CODIGO

edit: to imaginando o codigo do tuning mod, que se eu não me engano o junior_djjr
falou que tem mais de 1 milhão de linhas

[SA] Peds suicidas

Enviado: 17 Jun 2018, 01:11
por nadalao
e eu achei que tinha um limite pra usar gosubs :facep:

[SA] Peds suicidas

Enviado: 17 Jun 2018, 01:18
por HybridTheory
nadalao escreveu:
17 Jun 2018, 01:11
e eu achei que tinha um limite pra usar gosubs :facep:

Só se for um GOSUB dentro do outro.

Código: Selecionar tudo

GOSUB oi

oi:
GOSUB oi2
RETURN

oi2:
GOSUB oi3
RETURN

//etc

[SA] Peds suicidas

Enviado: 17 Jun 2018, 01:26
por FilipeS
Kkkk caramba.. há uma possibilidade de cair um no para-brisa do carro? hehe

[SA] Peds suicidas

Enviado: 17 Jun 2018, 16:02
por Junior_Djjr
Pierre escreveu: tu olha e parece simples e tals, mas OLHA O TAMANHO DESSE CODIGO
Mas o mod é simples, ele foi mal feito.
O código tá pura duplicação, era só usar variáveis para variar a coordenada e modelo, o código ficaria só 100~200 linhas.
 
Pierre escreveu: edit: to imaginando o codigo do tuning mod, que se eu não me engano o junior_djjr
falou que tem mais de 1 milhão de linhas
Nossa, confundir 40 mil com 1 milhão é foda.

[SA] Peds suicidas

Enviado: 17 Jun 2018, 16:15
por Pierre
Junior_Djjr escreveu:
Pierre escreveu: tu olha e parece simples e tals, mas OLHA O TAMANHO DESSE CODIGO
Mas o mod é simples, ele foi mal feito.
O código tá pura duplicação, era só usar variáveis para variar a coordenada e modelo, o código ficaria só 100~200 linhas.

Pierre escreveu: edit: to imaginando o codigo do tuning mod, que se eu não me engano o junior_djjr
falou que tem mais de 1 milhão de linhas
Nossa, confundir 40 mil com 1 milhão é foda.
eu tirei esse 1 milhão de algum lugar, ou ent eu tava com muito sono xD

[SA] Peds suicidas

Enviado: 17 Jun 2018, 18:31
por Um_Geek
Junior_Djjr escreveu:
17 Jun 2018, 16:02
Pierre escreveu: tu olha e parece simples e tals, mas OLHA O TAMANHO DESSE CODIGO
Mas o mod é simples, ele foi mal feito.
O código tá pura duplicação, era só usar variáveis para variar a coordenada e modelo, o código ficaria só 100~200 linhas.
Pode ser que de menos de 100 linhas fazendo a parte principal que faz as ações puxando as coordenadas por stringformat.
SpoilerAbrir

Código: Selecionar tudo

Coordinates:
DUMP 
"
1:-2661.997559,1791.796021,66.442703,270.0.
2:-1661.997559,1391.796021,66.442703,220.0.
3:-1592.513550, 753.076782,80.225479,130.0.
"
ENDDUMP

[SA] Peds suicidas

Enviado: 17 Jun 2018, 21:05
por Junior_Djjr
Um_Geek escreveu:
Junior_Djjr escreveu:
17 Jun 2018, 16:02
Pierre escreveu: tu olha e parece simples e tals, mas OLHA O TAMANHO DESSE CODIGO
Mas o mod é simples, ele foi mal feito.
O código tá pura duplicação, era só usar variáveis para variar a coordenada e modelo, o código ficaria só 100~200 linhas. 
Pode ser que de menos de 100 linhas fazendo a parte principal que faz as ações puxando as coordenadas por stringformat.
SpoilerAbrir

Código: Selecionar tudo

Coordinates:
DUMP
"
1:-2661.997559,1791.796021,66.442703,270.0.
2:-1661.997559,1391.796021,66.442703,220.0.
3:-1592.513550, 753.076782,80.225479,130.0.
"
ENDDUMP
 
Sim, assim seria o melhor jeito por cleo.