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

Anything to do with GTA1/GTA2 modding (tools, scripts and more).
Post Reply
Galactic Boy
Immortal
Posts: 334
Joined: 15 Apr 2012, 08:26

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

Post by Galactic Boy »

Is there a way to make all characters naked by script?
User avatar
Sektor
Boss
Boss
Posts: 1423
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

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

Post by Sektor »

Yes with creative use of the SET command.
User avatar
elypter
Immortal
Posts: 1120
Joined: 26 Dec 2009, 23:53
GH nick: elypter

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

Post by elypter »

Sektor wrote:Yes with creative use of the SET command.
http://gtamp.com/forum/viewtopic.php?p=6964#p6964
yur sa'nok ngeyä
User avatar
Sektor
Boss
Boss
Posts: 1423
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

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

Post by Sektor »

There is a singleplayer name cheat NEKKID - All dummy chars are naked
http://gtamp.com/gta2/gta2-cheats/
Jones
Psycho
Psycho
Posts: 51
Joined: 08 Aug 2012, 21:25

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

Post 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:
User avatar
Sektor
Boss
Boss
Posts: 1423
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

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

Post 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]
User avatar
Sektor
Boss
Boss
Posts: 1423
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

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

Post 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.
Post Reply