Is there a way to make all characters naked by script?
-
- Immortal
- Posts: 334
- Joined: 15 Apr 2012, 08:26
Is there a way to make all characters naked by script?
Is there a way to make all characters naked by script?
Re: Is there a way to make all characters naked by script?
Yes with creative use of the SET command.
Re: Is there a way to make all characters naked by script?
http://gtamp.com/forum/viewtopic.php?p=6964#p6964Sektor wrote:Yes with creative use of the SET command.
yur sa'nok ngeyä
Re: Is there a way to make all characters naked by script?
There is a singleplayer name cheat NEKKID - All dummy chars are naked
http://gtamp.com/gta2/gta2-cheats/
http://gtamp.com/gta2/gta2-cheats/
Re: Is there a way to make all characters naked by script?
Even CHECK_CHARACTER_HEALTH crashes on random peds/numbers and even this doesn't worked for me:
[mis]IF(HAS_CHAR_PUNCHED_SOMEONE (p1))
STORE_LAST_CHAR_PUNCHED ( p1, char )
CHANGE_CHAR_REMAP ( char , 1 ) [/mis]
edit:
ok found SET_CHAR_GRAPHIC_TYPE, but things getting weird again:
[mis]PLAYER_PED p1 = (130.7, 120.8, 2.0) 26 26
COUNTEr bla=1
ONSCREEN_COUNTER screen
COUNTER test1=0
COUNTER ped=0
LEVELSTART
CHAR_DATA char
CHANGE_CHAR_REMAP(p1,1)
ADD_ONSCREEN_COUNTER(screen,ped)
WHILE_EXEC(bla=1)
IF(HAS_CHAR_PUNCHED_SOMEONE(p1))
STORE_LAST_CHAR_PUNCHED(p1,ped)
SET test1=(ped+200)
WHILE(ped<test1)
SET char=(ped+0)
IF(CHECK_CHARACTER_HEALTH(char,0))
SET_CHAR_GRAPHIC_TYPE (char,DUMMY_GRAPHIC,26)
ENDIF
++ped
ENDWHILE
ENDIF
ENDWHILE
LEVELEND[/mis]
This time the ped speed is altered and graphic type is GANG_GRPAHIC although it should be DUMMY_GRAPHIC. At least it doesn't crash instantly
[mis]IF(HAS_CHAR_PUNCHED_SOMEONE (p1))
STORE_LAST_CHAR_PUNCHED ( p1, char )
CHANGE_CHAR_REMAP ( char , 1 ) [/mis]
edit:
ok found SET_CHAR_GRAPHIC_TYPE, but things getting weird again:
[mis]PLAYER_PED p1 = (130.7, 120.8, 2.0) 26 26
COUNTEr bla=1
ONSCREEN_COUNTER screen
COUNTER test1=0
COUNTER ped=0
LEVELSTART
CHAR_DATA char
CHANGE_CHAR_REMAP(p1,1)
ADD_ONSCREEN_COUNTER(screen,ped)
WHILE_EXEC(bla=1)
IF(HAS_CHAR_PUNCHED_SOMEONE(p1))
STORE_LAST_CHAR_PUNCHED(p1,ped)
SET test1=(ped+200)
WHILE(ped<test1)
SET char=(ped+0)
IF(CHECK_CHARACTER_HEALTH(char,0))
SET_CHAR_GRAPHIC_TYPE (char,DUMMY_GRAPHIC,26)
ENDIF
++ped
ENDWHILE
ENDIF
ENDWHILE
LEVELEND[/mis]
This time the ped speed is altered and graphic type is GANG_GRPAHIC although it should be DUMMY_GRAPHIC. At least it doesn't crash instantly
Re: Is there a way to make all characters naked by script?
edit: I started writing this before your post. Your SET_CHAR_GRAPHIC_TYPE code crashes most of the time as soon as I punch someone.
Looks like a bug/limitation of CHANGE_CHAR_REMAP but you can use SET_CHAR_GRAPHIC_TYPE to change remap and graphic type.
[mis]PLAYER_PED p1 = (130.7, 120.8, 2.0) 26 26
COUNTER loop=1
LEVELSTART
CHAR_DATA punched
WHILE_EXEC(loop=1)
IF(HAS_CHAR_PUNCHED_SOMEONE (p1))
STORE_LAST_CHAR_PUNCHED ( p1, punched )
SET_CHAR_GRAPHIC_TYPE ( punched , DUMMY_GRAPHIC , 26 )
ENDIF
ENDWHILE
LEVELEND
[/mis]
Looks like a bug/limitation of CHANGE_CHAR_REMAP but you can use SET_CHAR_GRAPHIC_TYPE to change remap and graphic type.
[mis]PLAYER_PED p1 = (130.7, 120.8, 2.0) 26 26
COUNTER loop=1
LEVELSTART
CHAR_DATA punched
WHILE_EXEC(loop=1)
IF(HAS_CHAR_PUNCHED_SOMEONE (p1))
STORE_LAST_CHAR_PUNCHED ( p1, punched )
SET_CHAR_GRAPHIC_TYPE ( punched , DUMMY_GRAPHIC , 26 )
ENDIF
ENDWHILE
LEVELEND
[/mis]
Re: Is there a way to make all characters naked by script?
Yes it's possible. You need to add 660 to an existing char to find another char and you can keep doing that until every ped on the map is naked but you have to keep doing it since they get recycled.
Grand Theft Loco topic has more info.
Grand Theft Loco topic has more info.