Quantcast

Jump to content

» «
Photo

CJ Sit down mod

3 replies to this topic
Black Ghost
  • Black Ghost

    Square Civilian

  • Members
  • Joined: 16 Jan 2008

#1

Posted 12 March 2008 - 04:37 PM

Hey all,,

I was looking for some thing to learn (becuse i dont know coding I want to learn barf8bd.gif ) and I find this posted in Aug 12 2005 mercie_blink.gif and it great look at it

CODE
;Place this by the other 004Fs in MAIN
004F: create_thread ££CJsitt


;Place this further down by the other threads
:CJsitt
0001: wait $DEFAULT_WAIT_TIME ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false ££CJsittOmstart
0004: $CJsitter =  0;; integer values
00D6: if  1
02A0:   actor $PLAYER_ACTOR stopped
00E1:   key_pressed  0  19
004D: jump_if_false ££CJsittOmstart
04ED: load_animation "BEACH"
04ED: load_animation "SUNBATHE"

:CJsittLastAnim
00D6: if  1
84EE:   NOT   animation "BEACH" loaded
84EE:   NOT   animation "SUNBATHE" loaded
004D: jump_if_false ££CJsittende
0001: wait  0 ms
0002: jump ££CJsittLastAnim

:CJsittende
0812: unknown_action_sequence $PLAYER_ACTOR "PARKSIT_M_IN" "SUNBATHE"  4.0  0  0  0  0 -1
0001: wait  2000 ms
0812: unknown_action_sequence $PLAYER_ACTOR "PARKSIT_M_LOOP" "BEACH"  4.0  1  0  0  0 -1
0004: $CJsitter =  1;; integer values
015D: set_gamespeed  5.0

:CJstå
0001: wait $DEFAULT_WAIT_TIME ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false ££CJstå
00D6: if  1
0038:   $CJsitter ==  1;; integer values
00E1:   key_pressed  0  19
004D: jump_if_false ££CJstå
015D: set_gamespeed  1.0
0605: unknown_action_sequence $PLAYER_ACTOR "PARKSIT_M_OUT" "SUNBATHE"  4.0  0  0  0  0 -1
04EF: release_animation "BEACH"
04EF: release_animation "SUNBATHE"
0001: wait  2000 ms

:CJsittOmstart
0002: jump ££CJsitt


It can make cj set down !!!!

and this posted by Toby
QUOTE
I couldn't find any code that checked for benches, etc. near CJ, so I simply make him sit like peds do on porches. It kinda works on flat ground too, even though small elevations like stairs or porches are better if you want it to look realistic.

Use Barton's Mission Builder to add these codes in your main.scm:
then the code i just show you

How to use it:
QUOTE
Press the "look behind" button (initially NUM1) while stopped to sit down. The gameplay will then increase to 5x normal speed. Press the same button while sitting to stand up, and the gameplay goes back to normal. Other changes f.ex. in stats can also be added, I might look at that later...

I haven't tested it much yet, but the only glitch I've found so far is that CJ sits down underwater without drowning if he's standing on the bottom. I don't know if there is a way to prevent this (code 0965 doesn't work unless he's floating), but it doesn't really matter. He'll do that if you crouch down normally anyway.


Ok but when i install it with Barton's Mission Builder and compile it this show up
user posted image

so can any one help me with it ??

ZAZ
  • ZAZ

    Kernlochbohrer

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

#2

Posted 12 March 2008 - 10:13 PM

QUOTE (Black Ghost @ Mar 12 2008, 16:37)
Ok but when i install it with Barton's Mission Builder and compile it this show up
user posted image

so can any one help me with it ??


The massage means that you have an invalid code line in your main
and this is the invalide line:
Place this by the other 004Fs in MAIN

your post exemble includes this line
CODE
;Place this by the other 004Fs in MAIN
004F: create_thread ££CJsitt

but it is set as comment, it have a semicolon infront ; and so it is valid

Maybe you have this line on an other place of your main without semicolon
search in your main for
Place this by the other 004Fs in MAIN
and delete it

james227uk
  • james227uk

    One Spartan Army

  • Andolini Mafia Family
  • Joined: 05 Feb 2008

#3

Posted 15 March 2008 - 01:16 PM

search for
CODE
0004:
in the main, then add
CODE
004F: create_thread ££CJsitt
underneath all the004Fs. Then scroll down to find some of the other threads, then add the rest of the script.

Black Ghost
  • Black Ghost

    Square Civilian

  • Members
  • Joined: 16 Jan 2008

#4

Posted 18 March 2008 - 12:09 PM

thanxs man you the best [ but i already did it ] but thanxs for trying you help biggrin.gif




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users