IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules Attention:

The Mod Showroom is only for posting previews/downloads of completed or near finished mods.
All help topics should be posted in the Editing Discussion forums. Help topics and mod requests posted here will be locked or binned. Thank you.
GTAGarage.com : Free mod hosting, attach your files and screenshots to your topics
GTAModding.com : A wiki for everything related to GTA modding, including documentation and tutorials

  Reply to this topicStart new topicStart Poll

 Car air reaction

 
nabnabnabn  
Posted: Friday, Jul 20 2012, 04:14
Quote Post


Xbox modder
Group Icon
Group: Members
Joined: Aug 18, 2008

jolly-roger.gif

XXXXX



hi guys

this is a simple script wich makes CJ scream when he is in the air while driving a vehicle except planes, I was thinking that maybe this adds a bit of realism tounge.gif

CODE

{$CLEO .cs}
thread 'FLYRCTN'

:FLYRCTN_11
wait 0
if
  Player.Defined($PLAYER_CHAR)
jf @FLYRCTN_11
if and
 $ONMISSION == 0
 $ACTIVE_INTERIOR == 0
jf @FLYRCTN_11
0819: 1@ = actor $PLAYER_ACTOR distance_from_ground
if and
 1@ > 6.0
  Actor.Driving($PLAYER_ACTOR)
84AD:   not actor $PLAYER_ACTOR in_water
84A7:   not actor $PLAYER_ACTOR driving_boat
jf @FLYRCTN_11
if and
  not Actor.DrivingPlane($PLAYER_ACTOR)
84A9:   not actor $PLAYER_ACTOR driving_heli
jf @FLYRCTN_136
0947: actor $PLAYER_ACTOR speak_from_audio_table 353 store_spoken_phrase_id_to $2563
wait 100

:FLYRCTN_136
wait 0
0819: 1@ = actor $PLAYER_ACTOR distance_from_ground
if and
  Actor.Driving($PLAYER_ACTOR)
jf @FLYRCTN_11
if
  not 1@ > 0.5
jf @FLYRCTN_136
jump @FLYRCTN_11




GLITCH(FIXED): sometimes CJ would just scream on his own on some parts of the map, it's because of the collusions between objects and also he would scream when you get off tuning garage.

mediafire: Car air reaction

This post has been edited by nabnabnabn on Friday, Jul 20 2012, 15:45

O This mod is hosted at GTAGarage.com

Downloads:
Download Car air reaction - 0.006MB, uploaded on Jul 20 2012, downloaded 320 times

Click here to view the mod at GTAGarage

Users WebsitePMMSNYahoo
  Top
 

 
methodunderg  
Posted: Friday, Jul 20 2012, 10:34
Quote Post


Grandpa
Group Icon
Group: Members
Joined: May 23, 2008

nz.gif

XXXXX



So when you mean 'in air while driving'; do you mean when going over a stunt-jump, or getting airborne.. or driving off a cliff etc?

Great unique idea btw !
PM
  Top
 

 
Frank.s  
Posted: Friday, Jul 20 2012, 12:31
Quote Post


IV Scripter, Modeler.
Group Icon
Group: Members
Joined: Apr 15, 2008

en.gif

Member Award




You can fix the unwanted CJ scream map glitch by checking if CJ is in the air constantly for more than a second. Then it theoretically would be bugfree. icon14.gif
PM
  Top
 

 
nabnabnabn  
Posted: Friday, Jul 20 2012, 15:38
Quote Post


Xbox modder
Group Icon
Group: Members
Joined: Aug 18, 2008

jolly-roger.gif

XXXXX



Alright, I think I have fixed the glitch, tested on the spots where he used to scream and it seems like it's working better now biggrin.gif

all I did is that I added a check if the car IS in air and I added a wait of about 100ms and also changed the screaming opcode to evoid any crashes tounge.gif

here is the script:
CODE
thread 'FLYRCTN'

:FLYRCTN_11
wait 0
if
  Player.Defined($PLAYER_CHAR)
jf @FLYRCTN_11
if and
 $ONMISSION == 0
 $ACTIVE_INTERIOR == 0
jf @FLYRCTN_11
0819: 1@ = actor $PLAYER_ACTOR distance_from_ground
if
 1@ > 5.0
jf @FLYRCTN_11
wait 50
if and
  Actor.Driving($PLAYER_ACTOR)
84AD:   not actor $PLAYER_ACTOR in_water
84A7:   not actor $PLAYER_ACTOR driving_boat
jf @FLYRCTN_11
03C0: 0@ = actor $PLAYER_ACTOR car
if
01F3:   car 0@ in_air
jf @FLYRCTN_11
if and
  not Actor.DrivingPlane($PLAYER_ACTOR)
84A9:   not actor $PLAYER_ACTOR driving_heli
jf @FLYRCTN_172
05C1: AS_actor $PLAYER_ACTOR speak_from_audio_table 353
wait 100

:FLYRCTN_172
wait 0
0819: 1@ = actor $PLAYER_ACTOR distance_from_ground
if
  Actor.Driving($PLAYER_ACTOR)
jf @FLYRCTN_11
if
  not 1@ > 0.5
jf @FLYRCTN_172
jump @FLYRCTN_11


mediafire added biggrin.gif

@methodunderg

yes smile.gif if you get in any of these then CJ would scream. it's the same screaming he does when he is falling.

This post has been edited by nabnabnabn on Friday, Jul 20 2012, 15:48
Users WebsitePMMSNYahoo
  Top
 

 
methodunderg  
Posted: Saturday, Jul 21 2012, 12:08
Quote Post


Grandpa
Group Icon
Group: Members
Joined: May 23, 2008

nz.gif

XXXXX



I only hear him say "oh sh*t"
PM
  Top
 

 
nabnabnabn  
Posted: Saturday, Jul 21 2012, 18:50
Quote Post


Xbox modder
Group Icon
Group: Members
Joined: Aug 18, 2008

jolly-roger.gif

XXXXX



QUOTE (methodunderg @ Saturday, Jul 21 2012, 12:08)
I only hear him say "oh sh*t"

dontgetit.gif he shouldn't say only that, I just tested it again, he screamed, said "oh sht" and also "wtf" and "I don't need this sht" this is what he said so far but there is also "I hate gravity" and maybe other screamings.

how manytimes did you do it?
Users WebsitePMMSNYahoo
  Top
 

 
methodunderg  
Posted: Monday, Jul 23 2012, 01:26
Quote Post


Grandpa
Group Icon
Group: Members
Joined: May 23, 2008

nz.gif

XXXXX



5.
Will test again tonight for ya xD
PM
  Top
 

 
oksa8  
Posted: Monday, Aug 6 2012, 14:59
Quote Post


Just call me Oksu
Group Icon
Group: Members
Joined: Sep 30, 2010

sf.gif

Member Award




Heh, finally got to try this one too, otherwise nice mod but he only says "EHhh"... (The sound when CJ dies.) No audio-related mods installed. biggrin.gif
Users WebsitePM
  Top
 

 
nabnabnabn  
Posted: Monday, Aug 6 2012, 19:57
Quote Post


Xbox modder
Group Icon
Group: Members
Joined: Aug 18, 2008

jolly-roger.gif

XXXXX



QUOTE (oksa8 @ Monday, Aug 6 2012, 14:59)
Heh, finally got to try this one too, otherwise nice mod but he only says "EHhh"... (The sound when CJ dies.) No audio-related mods installed. biggrin.gif

Hmm...
I guess that the sound numbers are diffrent than Xbox or maybe the Gta sa PC works diffrent than the Xbox one confused.gif , I could make a video of it and I'll show what really happens tounge.gif .
Users WebsitePMMSNYahoo
  Top
 

 
oksa8  
Posted: Monday, Aug 6 2012, 20:17
Quote Post


Just call me Oksu
Group Icon
Group: Members
Joined: Sep 30, 2010

sf.gif

Member Award




That's not the wierd part, but why me and methodunderg are getting both only one sound but different ones? tounge.gif

EDIT: Well, here's a documentation of speech tables, link. Not much, right? Well, Deji posted a link to script which will help to find specific ones for each ped, so can someone try and find falling sounds for CJ? I can't do it myself, getting late and I have to be up early tomorrow... confused.gif

This post has been edited by oksa8 on Monday, Aug 6 2012, 20:48
Users WebsitePM
  Top
 

 

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG