Quantcast

Jump to content

» «
Photo

GTA_SA Interior Teleport & Exit please HELP!

5 replies to this topic
DanceNSmile
  • DanceNSmile

    Player Hater

  • Members
  • Joined: 15 Jun 2013

#1

Posted 12 November 2013 - 11:57 PM

{$CLEO .cs}
:Interior_entrance_Exit_simple
03A4: name_thread 'INTENTS'

:INTENTS_2
0001: wait  0 ms
if
0256:   player $PLAYER_CHAR defined
004D: jump_if_false @INTENTS_2
if
00FF:   actor $PLAYER_ACTOR  1 (in-sphere)near_point_on_foot 2491.5  -1667.5  13.35 radius  1.0  1.0  1.0 //---What is this about please help!? What do I do here!?
004D: jump_if_false @INTENTS_2
016A: fade 0 time 1000
0001: wait 1000 ms
04BB: select_interior 3 //---What is this for?
04E4: unknown_refresh_game_renderer_at 962.17 -48.8 //---What is this?
03CB: set_rendering_origin_at 962.17 -48.8 1001.2 //---What is this, am I supposed to change it?
0860: link_actor $PLAYER_ACTOR to_interior 3 //---Why is this here again?
00A1: put_actor $PLAYER_ACTOR at 962.356 -53.17 1001.2 //---What is this for?
0173: set_actor $PLAYER_ACTOR Z_angle_to 84.0 //---What's this for?
0001: wait 500 ms
016A: fade 1 time 1000


:EXIT_3
0001: wait  0 ms
if
0256:   player $PLAYER_CHAR defined
004D: jump_if_false @EXIT_3
if
00FF:   actor $PLAYER_ACTOR  1 (in-sphere)near_point_on_foot 965.5  -53.2  1001.2 radius  1.0  1.0  1.0 //---What is this for?
004D: jump_if_false @EXIT_3
016A: fade 0 time 1000
0001: wait 1000 ms
04BB: select_interior 0 //---Okay I get that outside world is interior zero.
04E4: unknown_refresh_game_renderer_at 1126.3 -2037.1 //---What is this for?
03CB: set_rendering_origin_at 1126.3 -2037.1 69.88 //---What is this for?
0860: link_actor $PLAYER_ACTOR to_interior 0//---Okay I think I got this.
00A1: put_actor $PLAYER_ACTOR at 1126.3 -2037.1 69.88 //---What is this coordinate for?
0173: set_actor $PLAYER_ACTOR Z_angle_to 84.0 //---What is this for?
0001: wait 500 ms
016A: fade 1 time 1000
0002: jump @INTENTS_2

Please help me and answer the above! I marked the code lines where I am confused. Please explain in depth~ 


ZAZ
  • ZAZ

    Kernlochbohrer

  • Members
  • Joined: 10 Jan 2005
  • European-Union

#2

Posted 13 November 2013 - 02:36 PM Edited by ZAZ, 13 November 2013 - 07:24 PM.

 

04BB: select_interior 3 //---What is this for?

it needs to set the interior number

interior numbers are declared in IPL files, use Mapeditor to find it

look here for more informations about IPL

 

 

04E4: unknown_refresh_game_renderer_at 962.17 -48.8 //---What is this?
03CB: set_rendering_origin_at 962.17 -48.8 1001.2 //---What is this, am I supposed to change it?

it initialize or support the game rendering at specified location but only these interior world will be available which was is set by 04BB: select_interior

so insert the coords of location where the player should arrive

 

 

0860: link_actor $PLAYER_ACTOR to_interior 3 //---Why is this here again?

make the actor available for the given interior

 

 

00A1: put_actor $PLAYER_ACTOR at 962.356 -53.17 1001.2 //---What is this for?
0173: set_actor $PLAYER_ACTOR Z_angle_to 84.0 //---What's this for?

the code description already give the information: put_actor at given coords ... set_actor Z_angle


DanceNSmile
  • DanceNSmile

    Player Hater

  • Members
  • Joined: 15 Jun 2013

#3

Posted 14 November 2013 - 03:51 AM Edited by DanceNSmile, 14 November 2013 - 03:51 AM.

 

 

04BB: select_interior 3 //---What is this for?

it needs to set the interior number

interior numbers are declared in IPL files, use Mapeditor to find it

look here for more informations about IPL

 

 

04E4: unknown_refresh_game_renderer_at 962.17 -48.8 //---What is this?
03CB: set_rendering_origin_at 962.17 -48.8 1001.2 //---What is this, am I supposed to change it?

it initialize or support the game rendering at specified location but only these interior world will be available which was is set by 04BB: select_interior

so insert the coords of location where the player should arrive

 

 

0860: link_actor $PLAYER_ACTOR to_interior 3 //---Why is this here again?

make the actor available for the given interior

 

 

00A1: put_actor $PLAYER_ACTOR at 962.356 -53.17 1001.2 //---What is this for?
0173: set_actor $PLAYER_ACTOR Z_angle_to 84.0 //---What's this for?

the code description already give the information: put_actor at given coords ... set_actor Z_angle

 

How do you make it so that only when you press f you can enter the interior? And make it so that when you enter/exit it freezes you for five seconds before releasing you to prevent it from teleporting you up in the sky? Please help? 


ZAZ
  • ZAZ

    Kernlochbohrer

  • Members
  • Joined: 10 Jan 2005
  • European-Union

#4

Posted 14 November 2013 - 04:57 PM

replace the conditional check code with a keypress code

it's explained in the Cleo tutorial first steps:

Scripting/Writing a Thread > Next step / using conditional checks > The IF - Variation

sorry, the tut looks bad since the new forum software change


DanceNSmile
  • DanceNSmile

    Player Hater

  • Members
  • Joined: 15 Jun 2013

#5

Posted 15 November 2013 - 01:37 AM

replace the conditional check code with a keypress code

it's explained in the Cleo tutorial first steps:

Scripting/Writing a Thread > Next step / using conditional checks > The IF - Variation

sorry, the tut looks bad since the new forum software change

How do I make it so that when he exits and enters the player freezes for 5 seconds to maintain his position?


ZAZ
  • ZAZ

    Kernlochbohrer

  • Members
  • Joined: 10 Jan 2005
  • European-Union

#6

Posted 15 November 2013 - 12:12 PM

How do I make it so that when he exits and enters the player freezes for 5 seconds to maintain his position?

 

i'm not shure what you mean with freeze

freeze was meant to set player frozen as translated by older sascm.ini

01B4: set_player $PLAYER_CHAR frozen_state  0 (frozen)

new sascm.ini describe this code in that way:

01B4: set_player $PLAYER_CHAR can_move 0

this code make the PLAYER_CHAR uncontrollable for default controle like walk, aim, shoot ect..

and makes him also immun

 

 

I think you need to lock the PLAYER_CHAR at position

04D7: set_actor $PLAYER_ACTOR locked 1

you can do both

01B4: set_player $PLAYER_CHAR can_move 0
04D7: set_actor $PLAYER_ACTOR locked 1
wait 5000
04D7: set_actor $PLAYER_ACTOR locked 1
01B4: set_player $PLAYER_CHAR can_move 0




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users