[SA] Graffiti in anywhere WIP
Enviado: 18 Nov 2019, 18:11
Anteriormente chamado Grove Street Graffiti in anywhere
O mod originalmente foi feito para poder fazer o graffiti da grove street em qualquer lugar, alem disso adiciona 1 estrela de perseguição caso algum pedestre estiver próximo a você.
Atuamente o mod posibilita fazer os graffitis de tudas as bandas do jogo.
Pontos fortes
Até o momento
É somente usar o spray can (lata de pintura spray) perto de alguma parede, para cambiar os tags é somente pressionar G e os numeros do 1 até o 9.
Algumas imagens


As seguintes são imagens antigas da beta 0.3


Source
Download beta 0.6 (pra quem quiser testar)
Graffiti in anywhere
Creditos:
Texturas: Usei as texturas do dopienoise, do mod Remastered Vanilla Graffiti HQ.
Arquivos .DFF, .COl, .IDE: Ruben Viera / Angelomon
PD: tardei em atualizar pois o Coll editor tava bug
O mod originalmente foi feito para poder fazer o graffiti da grove street em qualquer lugar, alem disso adiciona 1 estrela de perseguição caso algum pedestre estiver próximo a você.
Atuamente o mod posibilita fazer os graffitis de tudas as bandas do jogo.
Pontos fortes
- Não bugueia os tags originais do jogo.
- Adicionado até 9 tags sem sustituir (necessário Open Limit Adjusted).
- Arquivo .ini configuravel (caso usar algum outro mod que adicione objetos pode cambiar o id dos tags)
- Não fica parte do graffiti voando.
Até o momento
- Precisa estar bem perto da parede para fazer o graffiti.
- Caso a superficie foi pequena o graffiti pode ficar com uma parte voando (voi corregir no futuro). Corrigido.
É somente usar o spray can (lata de pintura spray) perto de alguma parede, para cambiar os tags é somente pressionar G e os numeros do 1 até o 9.
Algumas imagens
SpoilerAbrir


As seguintes são imagens antigas da beta 0.3


Source
SpoilerAbrir
Código: Selecionar tudo
SCRIPT_START
{
NOP
//cleo have a 32 variable
LVAR_INT scplayer, aux, gun, veh, model
LVAR_FLOAT cords[8] //0=X, 1=Y, Z= 2, 3=X2...etc
LVAR_FLOAT Z ,angle, aux2
LVAR_INT tag[9] //to save the number of the tags
GET_PLAYER_CHAR 0 scplayer
READ_INT_FROM_INI_FILE "Graffiti.ini" "MAIN" "tag_1" tag[0]
READ_INT_FROM_INI_FILE "Graffiti.ini" "MAIN" "tag_2" tag[1]
READ_INT_FROM_INI_FILE "Graffiti.ini" "MAIN" "tag_3" tag[2]
READ_INT_FROM_INI_FILE "Graffiti.ini" "MAIN" "tag_4" tag[3]
READ_INT_FROM_INI_FILE "Graffiti.ini" "MAIN" "tag_5" tag[4]
READ_INT_FROM_INI_FILE "Graffiti.ini" "MAIN" "tag_6" tag[5]
READ_INT_FROM_INI_FILE "Graffiti.ini" "MAIN" "tag_7" tag[6]
READ_INT_FROM_INI_FILE "Graffiti.ini" "MAIN" "tag_8" tag[7]
READ_INT_FROM_INI_FILE "Graffiti.ini" "MAIN" "tag_9" tag[8]
model = tag[0]
//Created by Angelomon
main_loop:
WAIT 0
IF IS_KEY_PRESSED VK_KEY_G //to go to the tag change system
GOTO cheats
one_label:
ENDIF
IF IS_KEY_PRESSED VK_RBUTTON
AND IS_KEY_PRESSED VK_LBUTTON
GET_CURRENT_CHAR_WEAPON scplayer gun
IF gun = 41
and IS_CHAR_ON_FOOT scplayer
GET_CHAR_COORDINATES scplayer cords[0] cords[1] Z
GET_CHAR_HEADING scplayer angle
WRITE_DEBUG_WITH_FLOAT "X: " cords[0]
WRITE_DEBUG_WITH_FLOAT "Y: " cords[1]
WRITE_DEBUG_WITH_FLOAT "Z: " Z
WRITE_DEBUG_WITH_FLOAT "angle" angle
cords[2] = cords[0]
cords[3] = cords[1]
IF angle > 135.0 //south
and angle < 225.0
angle = 180.0
cords[3] = cords[1] - 1.0
cords[4] = cords[0] + 1.0
cords[5] = cords[3]
cords[6] = cords[0] - 1.0
cords[7] = cords[5]
GOSUB spawn
ENDIF
IF angle > 0.0 //north
and angle < 45.0
angle = 0.1
cords[3] = cords[1] + 1.0
cords[4] = cords[0] + 1.0
cords[5] = cords[3]
cords[6] = cords[0] - 1.0
cords[7] = cords[5]
GOSUB spawn
ENDIF
IF angle > 315.0 //another north
and angle < 360.0
angle = 0.1
cords[3] = cords[1] + 1.0
cords[4] = cords[0] + 1.0
cords[5] = cords[3]
cords[6] = cords[0] - 1.0
cords[7] = cords[5]
GOTO spawn
ENDIF
IF angle > 45.0 //west
and angle < 135.0
angle = 90.0
cords[2] = cords[0] - 1.0
cords[4] = cords[2]
cords[5] = cords[1] + 1.0
cords[6] = cords[4]
cords[7] = cords[1] - 1.0
GOTO spawn
ELSE
IF angle > 225.0 //east
and angle < 315.0
angle = 270.0
cords[2] = cords[0] + 1.0
cords[4] = cords[2]
cords[5] = cords[1] + 1.0
cords[6] = cords[4]
cords[7] = cords[1] - 1.0
GOTO spawn
ENDIF
ENDIF
label1:
ENDIF
ENDIF
GOTO main_loop
spawn:
IF IS_LINE_OF_SIGHT_CLEAR cords[0] cords[1] Z cords[2] cords[3] Z 1 1 1 1 1 //X Y Z X2 Y2 Z 1st verification
WRITE_DEBUG "there is nothing"
ELSE
IF IS_LINE_OF_SIGHT_CLEAR cords[0] cords[1] Z cords[4] cords[5] Z 1 1 1 1 1 //2nd verification
WRITE_DEBUG "2nd verification failed"
ELSE
IF IS_LINE_OF_SIGHT_CLEAR cords[0] cords[1] Z cords[6] cords[7] Z 1 1 1 1 1 //3rd verification
WRITE_DEBUG "3rd verification failed"
ELSE
WRITE_DEBUG "there is something"
IF ARE_ANY_CHARS_NEAR_CHAR scplayer 5.0 //if a ped is near you catch 1 star
ALTER_WANTED_LEVEL 0 1
wait 0
ELSE
IF GET_RANDOM_CAR_IN_SPHERE_NO_SAVE_RECURSIVE cords[0] cords[1] Z 3.0 0 0 veh
WRITE_DEBUG "there is a car near"
ELSE
REQUEST_MODEL model //1528
WHILE NOT HAS_MODEL_LOADED model
WAIT 0
ENDWHILE
Z = Z - 0.8
GOSUB direction
CREATE_OBJECT model cords[2] cords[3] Z aux
WRITE_DEBUG_WITH_FLOAT "X2" cords[2]
WRITE_DEBUG_WITH_FLOAT "Y2" cords[3]
aux2 = angle + 90.0
SET_OBJECT_ROTATION aux 0.0 0.0 aux2
WHILE IS_CHAR_PLAYING_ANIM scplayer "SPRAYCAN_FIRE"
wait 0
ENDWHILE
ENDIF
ENDIF
ENDIF //3rt verification
ENDIF //2nd verification
ENDIF //1st verification
goto label1
RETURN
direction:
//this part is for set the coordinates for the graffiti
IF angle > 135.0 //south
and angle < 225.0
angle = 180.0
cords[3] = cords[1] - 0.8 //Y2 = Y
return
ENDIF
IF angle > 0.0 //north
and angle < 45.0
angle = 0.1
cords[3] = cords[1] + 0.8
return
ENDIF
IF angle > 315.0 //another north
and angle < 360.0
angle = 0.1
cords[3] = cords[1] + 0.8
return
ENDIF
IF angle > 45.0 //west
and angle < 135.0
angle = 90.0
//stop
cords[2] = cords[0] - 0.8
return
ELSE
IF angle > 225.0 //east
and angle < 315.0
angle = 270.0
cords[2] = cords[0] + 0.8
return
ENDIF
ENDIF
return
cheats:
IF IS_KEY_PRESSED VK_KEY_1
or IS_KEY_PRESSED VK_NUMPAD1
model = tag[0]
PRINT_HELP_STRING "Graffiti change to tag 1"
wait 2000
ENDIF
IF IS_KEY_PRESSED VK_KEY_2
or IS_KEY_PRESSED VK_NUMPAD2
model = tag[1]
PRINT_HELP_STRING "Graffiti change to tag 2"
wait 2000
ENDIF
IF IS_KEY_PRESSED VK_KEY_3
or IS_KEY_PRESSED VK_NUMPAD3
model = tag[2]
PRINT_HELP_STRING "Graffiti change to tag 3"
wait 2000
ENDIF
IF IS_KEY_PRESSED VK_KEY_4
or IS_KEY_PRESSED VK_NUMPAD4
model = tag[3]
PRINT_HELP_STRING "Graffiti change to tag 4"
wait 2000
ENDIF
IF IS_KEY_PRESSED VK_KEY_5
or IS_KEY_PRESSED VK_NUMPAD5
model = tag[4]
PRINT_HELP_STRING "Graffiti change to tag 5"
wait 2000
ENDIF
IF IS_KEY_PRESSED VK_KEY_6
or IS_KEY_PRESSED VK_NUMPAD6
model = tag[5]
PRINT_HELP_STRING "Graffiti change to tag 6"
wait 2000
ENDIF
IF IS_KEY_PRESSED VK_KEY_7
or IS_KEY_PRESSED VK_NUMPAD7
model = tag[6]
PRINT_HELP_STRING "Graffiti change to tag 7"
wait 2000
ENDIF
IF IS_KEY_PRESSED VK_KEY_8
or IS_KEY_PRESSED VK_NUMPAD8
model = tag[7]
PRINT_HELP_STRING "Graffiti change to tag 8"
wait 2000
ENDIF
IF IS_KEY_PRESSED VK_KEY_9
or IS_KEY_PRESSED VK_NUMPAD9
model = tag[8]
PRINT_HELP_STRING "Graffiti change to tag 9"
wait 2000
ENDIF
GOTO one_label
return
}
SCRIPT_ENDDownload beta 0.6 (pra quem quiser testar)
Graffiti in anywhere
Creditos:
Texturas: Usei as texturas do dopienoise, do mod Remastered Vanilla Graffiti HQ.
Arquivos .DFF, .COl, .IDE: Ruben Viera / Angelomon
PD: tardei em atualizar pois o Coll editor tava bug






