Quantcast

Jump to content

» «
Photo

Changing #SPECIAL actor ID

2 replies to this topic
koragg
  • koragg

    [SiK] Racer & Global Moderator

  • Members
  • Joined: 25 Feb 2012
  • Bulgaria

#1

Posted 30 March 2012 - 07:31 AM

Can I change a special actor's ID from #SPECIAL01 to something else like #SPECIAL03 (for example)
Because i've got a bigfoot mod but i've also got an aliens mod and bigfoot and the alien model have the same ID so it just spawns the alien (and never bigfoot)

MichaelKnight1
  • MichaelKnight1

    Snitch

  • BUSTED!
  • Joined: 24 Mar 2012

#2

Posted 30 March 2012 - 10:10 AM

QUOTE (koragg @ Friday, Mar 30 2012, 07:31)
Can I change a special actor's ID from #SPECIAL01 to something else like #SPECIAL03 (for example)
Because i've got a bigfoot mod but i've also got an aliens mod and bigfoot and the alien model have the same ID so it just spawns the alien (and never bigfoot)

I think you want to change the player when the game starts , This is not difficult but easy, but I suppose you did not learn the scm coding !! Above all I would advise you to learn coding ok, But I advise you to start from the weakness of the hard and you will good without the speed and will become for use sanny builder . ok . so .
1- Mission Coding For beginner
2- ZAZ Tutorial
3- Mission Coding For Pro's
to load special actor you will start with this code 023C use 1 or 2 With the order
. . . .
CODE

023C: load_special_actor 'ACTOR' as 1 // models 290-299

to changer player you must use :
CODE

09C7: change_player $PLAYER_CHAR model_to #SPECIAL01

Special01 = the actor is that 'ACTOR' as 1 = 01
Special02 = as 2 . . .

koragg
  • koragg

    [SiK] Racer & Global Moderator

  • Members
  • Joined: 25 Feb 2012
  • Bulgaria

#3

Posted 30 March 2012 - 05:17 PM

I think i found an easier way to do it.I just replace the .txd and .dff files of some other ped in the game (WMORI) with the Bigfoot .txd and .dff files.
But the problem is that I can't get the script to load the WMORI ped instead of the Special Actor.Can someone try and do it.The ped's name is WMORI and it's number 94 in the peds.ide file.

This is the cleo script :



// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder....files/SASCM.rar) on 13.10.2007

{$VERSION 3.1.0027}
{$CLEO .cs}

//-------------MAIN---------------
[email protected] = -1
[email protected] = 0

:NONAME_14
wait 0
if and
$ONMISSION == 0
823D: not special_actor 1 loaded
else_jump @NONAME_53
023C: load_special_actor 'BIGFOOT' as 1 // models 290-299

:NONAME_53
Actor.StorePos($PLAYER_ACTOR, [email protected], [email protected], [email protected])
if and
[email protected] == -1
$ONMISSION == 0
[email protected] > -3315.392
not [email protected] >= 163.3204
[email protected] > -3019.81
not [email protected] >= -704.2101
else_jump @NONAME_469
0087: [email protected] = [email protected] // (float)
0087: [email protected] = [email protected] // (float)
0087: [email protected] = [email protected] // (float)
0087: [email protected] = [email protected] // (float)
[email protected] -= 180.0
[email protected] += 180.0
[email protected] -= 180.0
[email protected] += 180.0
0208: [email protected] = random_float_in_ranges [email protected] [email protected]
0208: [email protected] = random_float_in_ranges [email protected] [email protected]
02CE: [email protected] = ground_z_at [email protected] [email protected] 2000.0
03D3: get_route_nearest_for [email protected] [email protected] [email protected] store_to [email protected] [email protected] [email protected] Z_angle_to [email protected]
050A: [email protected] = distance_between_XYZ [email protected] [email protected] [email protected] and_XYZ [email protected] [email protected] [email protected]
if and
0025: [email protected] > [email protected] // (float)
[email protected] > 50.0
[email protected] >= 5.0
80FE: not actor $PLAYER_ACTOR sphere 0 in_sphere [email protected] [email protected] [email protected] radius 160.0 160.0 160.0
023D: special_actor 1 loaded
else_jump @NONAME_469
[email protected] = Actor.Create(Player4, #SPECIAL01, [email protected], [email protected], [email protected])
0208: [email protected] = random_float_in_ranges 0.0 360.0
Actor.Angle([email protected]) = [email protected]
0446: set_actor [email protected] immune_to_headshots 0
Actor.Health([email protected]) = 10000
07BC: set_actor [email protected] decision_maker_to 32 // AS_pack_version
04D8: set_actor [email protected] drowns_in_water 0
0946: set_actor [email protected] actions_uninterupted_by_weapon_fire 1
07FE: set_actor [email protected] fighting_style_to 5 0
03FE: set_actor [email protected] money 0
0245: set_actor [email protected] walk_style_to "OLDMAN"

:NONAME_469
if
Actor.Dead([email protected])
else_jump @NONAME_511
Actor.RemoveReferences([email protected])
[email protected] = -1
[email protected] = 0
jump @NONAME_613

:NONAME_511
if
80FE: not actor [email protected] sphere 0 in_sphere [email protected] [email protected] [email protected] radius 200.0 200.0 200.0
else_jump @NONAME_572
Actor.DestroyWithFade([email protected])
[email protected] = -1
[email protected] = 0

:NONAME_572
if and
051A: actor [email protected] damaged_by_actor $PLAYER_ACTOR
[email protected] == 0
else_jump @NONAME_613
05E2: AS_actor [email protected] kill_actor $PLAYER_ACTOR
[email protected] = 1

:NONAME_613
jump @NONAME_14




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users