Page 1 of 1

Is there a way to make all characters naked by script?

Posted: 29 Oct 2012, 19:03
by Galactic Boy
Is there a way to make all characters naked by script?

Re: Is there a way to make all characters naked by script?

Posted: 29 Oct 2012, 22:18
by Sektor
Yes with creative use of the SET command.

Re: Is there a way to make all characters naked by script?

Posted: 30 Oct 2012, 11:19
by elypter
Sektor wrote:Yes with creative use of the SET command.
http://gtamp.com/forum/viewtopic.php?p=6964#p6964

Re: Is there a way to make all characters naked by script?

Posted: 31 Oct 2012, 00:25
by Sektor
There is a singleplayer name cheat NEKKID - All dummy chars are naked
http://gtamp.com/gta2/gta2-cheats/

Re: Is there a way to make all characters naked by script?

Posted: 31 Oct 2012, 14:48
by Jones
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 :mrgreen:

Re: Is there a way to make all characters naked by script?

Posted: 31 Oct 2012, 16:04
by Sektor
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]

Re: Is there a way to make all characters naked by script?

Posted: 05 Apr 2013, 18:12
by Sektor
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.