Quantcast

Jump to content

» «
Photo

[SA] ~ CLEO Script Tutorial ~

957 replies to this topic
KCAO
  • KCAO

    Player Hater

  • Members
  • Joined: 17 Nov 2017
  • Singapore

#931

Posted 22 November 2017 - 07:51 PM

Yes they do. But they're very short and quick.

 

 

 

For the player_actor you can't really see a change.

 

For the girl you can see that arms and legs rotate quick, from doggy to missionary pose and also from the other front pose to doggy pose

 

See that's exactly what I'm referring to. There is actually an animation that should take about 1-1.5 seconds when switching positions. This should be in there IN PLACE of the quick rotation animation. If you look into the sex.ifp file, you will see that these animations exist under:

SEX_1TO2_P
SEX_1TO2_W
SEX_2TO3_P
SEX_2TO3_W
SEX_3TO1_P
SEX_3TO1_W

These are the animations I'm looking to replace that short and quick transition.


ZAZ
  • ZAZ

    Kernlochbohrer

  • Feroci
  • Joined: 10 Jan 2005
  • European-Union
  • Contribution Award [Mods]
    Helpfulness Awards [Mods]

#932

Posted 22 November 2017 - 10:23 PM

yes

i think i should make a vid and send it to you

and you make also a vid and send it to me


Wolf_
  • Wolf_

    I'm not a supernatural

  • BUSTED!
  • Joined: 28 Dec 2016
  • Brazil

#933

Posted 18 February 2018 - 04:03 AM

yes

i think i should make a vid and send it to you

and you make also a vid and send it to me

 

                                       @ZAZ: could help me how to find brand code 2 point on the map?

 

                                                     2iazjo9.png


ZAZ
  • ZAZ

    Kernlochbohrer

  • Feroci
  • Joined: 10 Jan 2005
  • European-Union
  • Contribution Award [Mods]
    Helpfulness Awards [Mods]

#934

Posted 19 February 2018 - 05:29 PM

what means brand code 2 point on the map?

Hayate Kankichi
  • Hayate Kankichi

    Player Hater

  • Members
  • Joined: 31 Jul 2015
  • India

#935

Posted 19 February 2018 - 05:56 PM

 

Hey guys, I want to make another script. but Don't know professonal. so I need help in making object attach to Player. like War Machine have Minigun on it's shoulder, so please tell me how I can mount any object or model to player?

First method: opcode 069B: attach object with offset to actor model center like parachute is done
object keeps position, while actor makes animation
0247: load_model #PARACHUTE 

:PLCHUTE_274 
00D6: if 
0248:   model #PARACHUTE available 
004D: jump_if_false @PLCHUTE_377 
0107: [email protected] = create_object #PARACHUTE at $TEMPVAR_X_COORD $TEMPVAR_Y_COORD $TEMPVAR_Z_COORD 
069B: attach_object [email protected] to_actor $PLAYER_ACTOR with_offset 0.0 0.0 0.0 rotation 0.0 0.0 0.0 
0750: set_object [email protected] visibility 0
Second method: opcode 070A: attach object to bone, like smoking cigar
 
070A: AS_actor $PLAYER_ACTOR attach_to_object [email protected] offset 0.0 0.0 -0.5 on_bone 6 1 perform_animation "NULL" IFP_file "NULL" time 999999
If 2 objects should be attached, then use 070A: for first object and 09A0: for second object
 
070A: AS_actor $PLAYER_ACTOR attach_to_object [email protected] offset 0.0 0.0 -0.5 on_bone 6 1 perform_animation "NULL" IFP_file "NULL" time 999999
09A0: actor $PLAYER_ACTOR attach_object [email protected] with_offset 0.0 0.0 -0.5 on_bone 5 1 perform_animation "NULL" IFP_file "NULL" time 999999
Bones ID list

Crashes the Game = 0
Chest = 1
Neck = 2
Left Shoulder = 3
Right Shoulder = 4
Left Hand = 5
Right Hand = 6
Root = 7
- = 8
Left Foot = 9
Right Foot = 10
Right Knee = 11
- = 12
Left Elbow = 13
Right Elbow = 14
Left Clavicle = 15
Right Clavicle = 16
Back of Neck = 17
Mouth or Chin = 18
Crashes the Game = 19

 

So I try to use your method but I need one more help.
I try to set a 3d model with that trick, but I got a huge problem.
I can't set it's rotation, and I want it collision, means to say it can avoid bullets.

I want to make a mod for gta sa where you wear a armor and helmet. like Soldiers. and they can stop the bullets too. I try to make the script. but I can't set it's rotation, I can set it's offset. but how to set rotation and make it collision true? (I don't know command for collision either)

<script data-cfasync="false" src="/cdn-cgi/scripts/d07b1474/cloudflare-static/email-decode.min.js"></script>


ZAZ
  • ZAZ

    Kernlochbohrer

  • Feroci
  • Joined: 10 Jan 2005
  • European-Union
  • Contribution Award [Mods]
    Helpfulness Awards [Mods]

#936

Posted 20 February 2018 - 03:52 PM

I can't set it's rotation

It's not possible to adjust propper rotation at opcode 070A: as well 09A0:

7th parameter is for rotation
070A: AS_actor $PLAYER_ACTOR attach_to_object [email protected] offset 0.0 0.0 -0.5 on_bone 6 1<--rotation
i found only two different rotations, either 1 or 16
070A: AS_actor $PLAYER_ACTOR attach_to_object [email protected] offset 0.0 0.0 -0.5 on_bone 6 16<--rotation
try 16, maybe it helps, otherwise it needs to modify the models axis

Wolf_
  • Wolf_

    I'm not a supernatural

  • BUSTED!
  • Joined: 28 Dec 2016
  • Brazil

#937

Posted 22 February 2018 - 11:14 PM Edited by 1010, 22 February 2018 - 11:18 PM.

what means brand code 2 point on the map?

 

I was found this in the script and did not find it could help me will be grateful

 

sorry for my english


Inan-Ahammad
  • Inan-Ahammad

    Project Props - Mapper

  • Members
  • Joined: 15 Jul 2016
  • Bangladesh

#938

Posted 27 February 2018 - 06:59 PM

can the signle local variable be used like this to take a array type data 06D2: [email protected] = "cheetah , infernus"?


Hayate Kankichi
  • Hayate Kankichi

    Player Hater

  • Members
  • Joined: 31 Jul 2015
  • India

#939

Posted 02 March 2018 - 08:12 PM

Ok Zaz Thanks for help.
Well I want to know for a script.
Which Could help me a bit in SAMP.

Like you know If I fly hunter and Have to fire rocket. I want to keep then rapidly fire. Just hold the LMB and let it rapidly fire. not like keep pressing the Buttons to keep firing.

do you have any idea to make a script like that. Because that would be very helpful indeed. to many pilots. who lose their chance by keep firing on target and missed because of that finger who is keep pressing LMB or any other firing button.

 

So in short. what about a script which could help me to just hold the fire button, and let the rocket rapidly fire. like as it should be.


deltaCJ
  • deltaCJ

    Davy Jones' Sock

  • Members
  • Joined: 27 Dec 2013
  • Unknown

#940

Posted 11 March 2018 - 08:38 PM

Hey ZAZ, Do you know what the flags are for the Opcode 07E7?


ZAZ
  • ZAZ

    Kernlochbohrer

  • Feroci
  • Joined: 10 Jan 2005
  • European-Union
  • Contribution Award [Mods]
    Helpfulness Awards [Mods]

#941

Posted 11 March 2018 - 09:00 PM

first flag have effect to path assignement, the others i don't know

0 0 5 let it drive on paths
2 0 5 ignore the paths

  • deltaCJ likes this

deltaCJ
  • deltaCJ

    Davy Jones' Sock

  • Members
  • Joined: 27 Dec 2013
  • Unknown

#942

Posted 12 March 2018 - 01:57 AM

Thank you!


deltaCJ
  • deltaCJ

    Davy Jones' Sock

  • Members
  • Joined: 27 Dec 2013
  • Unknown

#943

Posted 12 March 2018 - 04:52 PM

Hm I have another problem. I made a mission but every time theres a cutscene CJ and the actor I use attack each other!

ZAZ
  • ZAZ

    Kernlochbohrer

  • Feroci
  • Joined: 10 Jan 2005
  • European-Union
  • Contribution Award [Mods]
    Helpfulness Awards [Mods]

#944

Posted 12 March 2018 - 05:39 PM

How should i help in this case if you don't show the script?

Btw. why don't you post in mission coding section


deltaCJ
  • deltaCJ

    Davy Jones' Sock

  • Members
  • Joined: 27 Dec 2013
  • Unknown

#945

Posted 12 March 2018 - 05:42 PM

Sorry Im texting from my phone and I brought my laptop to school, but my school blocks gtaforums, so I cant access it. And I dont want to make too many topics in mission section.

deltaCJ
  • deltaCJ

    Davy Jones' Sock

  • Members
  • Joined: 27 Dec 2013
  • Unknown

#946

Posted 12 March 2018 - 07:35 PM

My script: 

Spoiler

ZAZ
  • ZAZ

    Kernlochbohrer

  • Feroci
  • Joined: 10 Jan 2005
  • European-Union
  • Contribution Award [Mods]
    Helpfulness Awards [Mods]

#947

Posted 15 March 2018 - 04:58 PM

Opcode 074D: cause the glitch. Use 0A1D: instead and give a little bit wait time for the movement if neccesary
0A1D: AS_actor [email protected] rotate_to_and_look_at_actor $PLAYER_ACTOR
0A1D: AS_actor $PLAYER_ACTOR rotate_to_and_look_at_actor [email protected]
wait 500
Then the others

1. you forgot to load #WMYBMX

2. actor can only do one command,
in this case:
05E2: AS_actor [email protected] kill_actor [email protected]
04EB: AS_actor [email protected] crouch 0
actor doesn't kill [email protected], so delete 04EB:, especially because he is already crouching

3. your "actor.Dead kill actor loops"
look here:
:MIS01_46
wait 0
if
    not actor.Dead([email protected])
jf @MIS01_18145
if
    actor.Dead([email protected])
jf @MIS01_47
05E2: AS_actor [email protected] kill_actor [email protected]
marker.Disable([email protected])
actor [email protected] can already be dead, then actor [email protected] kill should kill a dead actor, that's not a good idea

i would do it in one loop, in this way
Spoiler



Your cleanup section must be done, there you can also use 075C: to remove only the available markes
  • deltaCJ likes this

Garwan50
  • Garwan50

    Player Hater

  • Members
  • Joined: 29 Apr 2011
  • France

#948

Posted 4 weeks ago Edited by Garwan50, 4 weeks ago.

Hello, i'm looking for an OPCODE that would get the license plate from a vehicle in gta SA.

How can I do that ?

 

Thanks!


Evil empire
  • Evil empire

    Foot Soldier

  • Members
  • Joined: 23 Sep 2010
  • France

#949

Posted 4 weeks ago

Hello

 

I'm looking for a collectible item and don't know where it is so I would like to create a script that would show me its location, a bit like Demarest's Unique call for GTA Vice City.

 

To be more precise I would like to create this script for GTA 3's Frosted winter total conversion and its GTA 3 bonuses.


ZAZ
  • ZAZ

    Kernlochbohrer

  • Feroci
  • Joined: 10 Jan 2005
  • European-Union
  • Contribution Award [Mods]
    Helpfulness Awards [Mods]

#950

Posted 4 weeks ago

Hello, i'm looking for an OPCODE that would get the license plate from a vehicle in gta SA.

there isn't any

 

Hello

I'm looking for a collectible item and don't know where it is so I would like to create a script that would show me its location, a bit like Demarest's Unique call for GTA Vice City.

To be more precise I would like to create this script for GTA 3's Frosted winter total conversion and its GTA 3 bonuses.


search for opcodes 0213: and 032B: in main.scm like these

0213: $656 = create_pickup #BAT type 2 at 883.5 -302.0625 8.0
032B: $602 = create_weapon_pickup #AK47 14 ammo 60 at 1249.0 -858.5 20.5625

then write a script that places radar markers at these coords
example:

018A: [email protected] = create_checkpoint_at 883.5 -302.0625 8.0
018A: [email protected] = create_checkpoint_at 1249.0 -858.5 20.5625

you should make the script in that way that the markers only will be shown if you hold a specified key
and if not key is pressed, then the markers should be removed

hmm... your looking for bonus, so maybe it just needs to look for lines like this

032B: $SHORESIDE_IE_GARAGE_PICKUP_1 = create_weapon_pickup #BONUS 3 ammo 17 at -1115.0 145.5 59.0

in main.scm

 

but it's a mod, so you don't know if it still have same filename BONUS and you don't know if they always used opcode 032B:


Garwan50
  • Garwan50

    Player Hater

  • Members
  • Joined: 29 Apr 2011
  • France

#951

Posted 4 weeks ago

Thanks for the answer ZAZ.


ShudderRO
  • ShudderRO

    Player Hater

  • Members
  • Joined: 4 weeks ago
  • Romania

#952

Posted 4 weeks ago

{$CLEO .cs}
0000: NOP


repeat
wait 0
until 0AFA: is_samp_structures_available


0B34: samp register_client_command "command" to_label @cmd_1


while true 
wait 0
   if [email protected] == true
   then
       0AF9: samp say_msg "test"
       0001: wait 50000 ms
   end
end


:cmd_1
[email protected] = true 
SAMP.CmdRet()

Hi! I want this script to stop when I type /command. How could I do that?

ZAZ
  • ZAZ

    Kernlochbohrer

  • Feroci
  • Joined: 10 Jan 2005
  • European-Union
  • Contribution Award [Mods]
    Helpfulness Awards [Mods]

#953

Posted 4 weeks ago

This opcode terminates the running thread:
0A93: end_custom_thread

But you should ask here if you work with samp_funcs


ShudderRO
  • ShudderRO

    Player Hater

  • Members
  • Joined: 4 weeks ago
  • Romania

#954

Posted 4 weeks ago Edited by ShudderRO, 4 weeks ago.

This opcode terminates the running thread:
0A93: end_custom_thread

But you should ask here if you work with samp_funcs

Solved. 2 more questions:

  1. How could I get my current health?
  2. Is it possible to verify if a text is found in the last chat row?

ZAZ
  • ZAZ

    Kernlochbohrer

  • Feroci
  • Joined: 10 Jan 2005
  • European-Union
  • Contribution Award [Mods]
    Helpfulness Awards [Mods]

#955

Posted 4 weeks ago

How could I get my current health?

0226: [email protected] = actor $PLAYER_ACTOR health

Is it possible to verify if a text is found in the last chat row?

That's a samp_funcs question

ShudderRO
  • ShudderRO

    Player Hater

  • Members
  • Joined: 4 weeks ago
  • Romania

#956

Posted 3 weeks ago Edited by ShudderRO, 3 weeks ago.

 

How could I get my current health?

0226: [email protected] = actor $PLAYER_ACTOR health

Is it possible to verify if a text is found in the last chat row?

That's a samp_funcs question

 

Thank you very much for help. Where could I ask about that SampFuncs script? How could I verify if an ID (0 for example) is busy? I mean if a player has ID 0.


ZAZ
  • ZAZ

    Kernlochbohrer

  • Feroci
  • Joined: 10 Jan 2005
  • European-Union
  • Contribution Award [Mods]
    Helpfulness Awards [Mods]

#957

Posted 3 weeks ago

i already gave the answer in previous post


Evil empire
  • Evil empire

    Foot Soldier

  • Members
  • Joined: 23 Sep 2010
  • France

#958

Posted 3 weeks ago

Thanks for your fast answer, I'll take a look at the main.scm through sanny builder, hoping it won't be too complicated.





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users