#1 02-06-2011 18:34

Tawa_Hoda
Registered: 24-01-2010
Posts: 5

Custom Special Actors are Crashing the game...

I had gotten it to load in the past but recently it refuses to load my own special actor models.
The Script

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

{$VERSION 3.1.0027}
{$CLEO .cs}

//-------------MAIN---------------
thread 'TEAM' 

:TEAM_5
wait 0 
if 
   Player.Defined($PLAYER_CHAR)
else_jump @TEAM_5 
077E: get_active_interior_to 0@ 
if and
09E7:   player $PLAYER_CHAR not_frozen 
0AB0:   key_pressed 77 
0AB0:   key_pressed 9 
  0@ == 0 
else_jump @TEAM_5
023C: load_special_actor 'P1_CloneTrooper' as 5 // models 290-299 
Model.Load(#MP5LNG)
Model.Load(#SPECIAL05)
04C4: store_coords_to 1@ 2@ 3@ from_actor $PLAYER_ACTOR with_offset 0.0 0.0 2.0
038B: load_requested_models 
jump @TEAM_7 

:TEAM_7
wait 0 
if and
   Model.Available(#MP5LNG)
   Model.Available(#SPECIAL05)
else_jump @TEAM_7 
wait 0 
1@ += 300 
4@ = Actor.Create(Gang2, #SPECIAL05, 1@, 2@, 3@)
wait 10 
2@ += 300 
5@ = Actor.Create(Gang2, #SPECIAL05, 1@, 2@, 3@)
wait 10 
1@ -= 300 
6@ = Actor.Create(Gang2, #SPECIAL05, 1@, 2@, 3@)
wait 10 
11@ = Marker.CreateAboveActor(4@)
12@ = Marker.CreateAboveActor(5@)
13@ = Marker.CreateAboveActor(6@)
07E0: set_marker 18@ type_to 1 
07E0: set_marker 19@ type_to 1 
07E0: set_marker 20@ type_to 1 
Actor.Health(4@) = 500
Actor.Health(5@) = 500
Actor.Health(6@) = 500
01B2: give_actor 4@ weapon 29 ammo 1200 // Load the weapon model before using this 
01B2: give_actor 5@ weapon 29 ammo 1200 // Load the weapon model before using this 
01B2: give_actor 6@ weapon 29 ammo 1200 // Load the weapon model before using this 
Actor.WeaponAccuracy(4@) = 80
Actor.WeaponAccuracy(5@) = 80
Actor.WeaponAccuracy(6@) = 80


:TEAM_9
wait 0 
if 
   Actor.Dead($PLAYER_ACTOR)
else_jump @TEAM_11 
Actor.DestroyInstantly(4@)
Actor.DestroyInstantly(5@)
Actor.DestroyInstantly(6@)
Marker.Disable(11@)
Marker.Disable(12@)
Marker.Disable(13@)

:TEAM_11
wait 0 
if 
   Actor.Dead(4@)
else_jump @TEAM_13 
Actor.DestroyWithFade(4@)
Marker.Disable(11@)
32@ += 1 

:TEAM_13
wait 0 
if 
   Actor.Dead(5@)
else_jump @TEAM_15 
Actor.DestroyWithFade(5@)
Marker.Disable(12@)
32@ += 1 

:TEAM_15
wait 0 
if 
   Actor.Dead(6@)
else_jump @TEAM_17
Actor.DestroyWithFade(6@)
Marker.Disable(13@)
32@ += 1
wait 0 
if 

:TEAM_17
wait 0 
if 
  32@ == 3 
else_jump @TEAM_19 
32@ = 0 
jump @TEAM_5 

:TEAM_19
wait 0 
077E: get_active_interior_to 0@ 
if and
09E7:   player $PLAYER_CHAR not_frozen 
0AB0:   key_pressed 77 
0AB0:   key_pressed 9 
  0@ == 0 
else_jump @TEAM_9 
Actor.DestroyInstantly(4@)
Actor.DestroyInstantly(5@)
Actor.DestroyInstantly(6@)
Marker.Disable(11@)
Marker.Disable(12@)
Marker.Disable(13@)
wait 3000 
jump @TEAM_5

It doesn't seem like it likes me very much anymore...  I've seen other scripts people have made, load special actors that have custom models... and work just fine. Is there like a limit or something?

Offline

#2 03-06-2011 15:46

Silent
Registered: 08-05-2010
Posts: 29

Re: Custom Special Actors are Crashing the game...

Name is too long. 7 chars is max.

Offline

#3 03-06-2011 18:07

Tawa_Hoda
Registered: 24-01-2010
Posts: 5

Re: Custom Special Actors are Crashing the game...

OH... Okay i'll remember that.

Offline

Board footer

Powered by FluxBB