Jump to content

floating cars 2


Bad.boy!

Recommended Posts

What opcode should I use if I want to make a car float like the leviathan or the sea sparrow (if it is possible)?

So you can create amphibious vehicles.

Link to comment
Share on other sites

There's no opcode for that. The Leviathan and Sea Sparrow are able to float on water because of their handling lines.

23088_s.gif

Link to comment
Share on other sites

which line do I have to edit in the handling.cfg to make them float?

Link to comment
Share on other sites

I don't see obvious differences, between the floating choppers/planes and the normal choppers/planes (except for the vortex):

 

 

;------- planes -----------------------------------;; name       mass     turnmass  drag   centreofmass  boy traction           transmission            brakes       steer  suspension       suslines        antidive   seat col  cost      mflags      hflags      lights; A          B         C        D      F   G    H    I   J    K    L    	M N     O    P Q  R      S     T U    V    	a    b     c     d    e     f    g    	aa   ab   ac  af    ag    ah ai	ajSEAPLANE     5000.0   27083.3   12.0   0.0 0.0  0.0   9  0.83 45.0 0.5  	1 200.0  1.7 5.0  4 P  0.01  0.05 0 24.0  	1.5  0.75  0.0   0.10  0.0  2.0  0.0  1.0  0.05 10000  4000400  0  	0  1	0VORTEX       1900.0    4795.9   20.0   0.0 0.0  0.2  85  0.05 1.0  0.5  	5 150.0  2.0 5.0  R P  1.0   0.50 0 30.0  	0.5  0.05  0.0   0.33 -0.25 0.5  0.02  0.65 0.50 26000  301  	400040  0  1	23RUSTLER      5000.0   27083.3   10.0   0.0 0.0  0.0  75  0.65 0.9  0.5  	1 200.0 16.0 5.0  4 P  1.5   0.45 0 45.0  	2.0  0.15  0.0   0.50 -0.20 0.5  0.0  0.30 0.75 45000  4008108  400020  0  1	14BEAGLE  	20000.0  300000.0  25.0   0.0 0.0  0.0  75  0.65 0.9  0.5  	1 200.0 16.0 5.0  4 P  1.5   0.45 0 45.0   1.5  0.15  0.0   0.50 -0.20 0.45 0.0  	0.30 0.75 45000  24000008  400000  	0  1    13CROPDUST     5000.0   27083.3   15.0   0.0 0.0  0.0  75  0.65 0.9  0.5  	1 200.0 16.0 5.0  4 P  1.5   0.45 0 45.0  	2.0  0.15  0.0   0.55 -0.05 0.5  0.0  0.30 0.75 45000  4008000  400020  0  1	14STUNT        5000.0   20000.0   14.0   0.0 0.0  0.0  75  0.65 0.9  0.5  	1 200.0 16.0 5.0  4 P  1.5   0.45 0 45.0  	2.0  0.15  0.0   0.50 -0.10 0.9  0.0  0.30 0.75 45000  4008100  400020  0  1	14SHAMAL      15000.0   81250.0   8.0    0.0 0.0  0.0  75  0.55 0.8  0.7  	1 200.0 16.0 5.0  4 P  1.5   0.15 0 45.0  	4.0  0.15  0.0   1.00 -0.00 0.3  0.0  0.30 0.75 45000  400c108  400000  0  1	26HYDRA        9000.0   48750.0   20.0   0.0 0.0  0.0  75  0.65 0.9  0.5  	1 200.0 16.0 5.0  4 P  1.5   0.45 0 45.0  	1.0  0.15  0.0   0.50 -0.20 0.8  0.0  0.60 0.75 45000  4008100  400000  0  1	27NEVADA  40000.0 3000000.0  4.0    0.0 0.0  0.0  75  0.65 0.9 0.5  	1 200.0 16.0 5.0  4 P  1.0   0.45 0 45.0  1.5  0.15  0.0   0.50 -0.20 0.45 0.0      0.30 0.75 45000  24000008  400000  	0  1  13 AT400       60000.0 9000000.0   4.0    0.0 0.0  0.0  75  1.5  0.9  0.85  	1 200.0 16.0 5.0  4 P  1.0   0.45 0 45.0  	1.5  0.15  0.0   0.50 -0.20 0.3  0.0  0.70 0.75 45000  2400c008	400000  0  1	15ANDROM      40000.0 3000000.0   4.0    0.0 0.0  0.0  75  0.65 0.9  0.5  	1 200.0 16.0 5.0  4 P  1.0   0.45 0 45.0  	2.0  0.15  0.0   0.50 -0.20 0.5  0.0  0.30 0.75 45000  24114108	440000  0  1	0DODO      5000.0   27083.3   12.0   0.0 0.3  0.0  75  0.65 0.9  0.5  	1 200.0 16.0 5.0  4 P  1.5   0.45 0 45.0  	1.5  0.15  0.0   0.50 -0.05 0.2  0.0  0.50 0.75 45000  4000000  400000  0  1	13SPARROW      2500.0    6041.7   0.2    0.0 0.0 -0.1  75  0.65 0.9  0.5  	1 200.0 16.0 5.0  4 P  5.0   0.45 0 30.0  	2.0  0.1   0.0   0.50 -0.20 0.5  0.0  0.30 0.50 25000  2004000  400000  0  1	0SEASPAR      3000.0    7250.0   0.1    0.0 0.0 -0.1   5  0.65 0.9  0.5  	1 200.0 16.0 5.0  4 P  5.0   0.45 0 30.0  	2.0  0.1   0.0   0.50 -0.20 0.5  0.0  0.30 0.60 28000  2004000  400000  0  1	0MAVERICK  1454.0    3635.8   0.2    0.0 0.0 0.05  70  0.65 0.9  0.5      1 220.0 20.5 4.1  4 P   5.0   0.45 0 37.0   2.0  0.15  0.0   0.50 -0.20 0.5  0.0  	0.30 0.74 45000  2004000  400000  	1  1  0 COASTMAV     3500.0    8458.3   0.2    0.0 0.0 -0.1  75  0.65 0.9  0.5  	1 200.0 16.0 5.0  4 P  5.0   0.45 0 30.0  	2.0  0.1   0.0   0.50 -0.20 0.5  0.0  0.30 0.65 50000  2004000  400000  0  1	0POLMAV   1454.0    3635.8  0.2    0.0 0.0 0.05  70  0.65 0.9 0.5  	1 220.0 20.5 4.1  4 P   5.0   0.45 0 37.0   2.0  0.15  0.0   0.50 -0.20 0.5  0.0        0.30 0.74 45000  2004000  400000  	1  1  0 HUNTER      10000.0  150000.0   0.2    0.0 0.0  0.0  75  0.65 0.9  0.5  	1 200.0 16.0 5.0  4 P  5.0   0.45 0 30.0  	1.0  0.05  0.0   0.20 -0.15 0.85 0.0  0.40 0.50 99000  200c000  400000  0  1	14LEVIATHN    15000.0  200000.0   0.1    0.0 0.0  0.0  30  0.65 0.9  0.5  	1 200.0 16.0 5.0  4 P  5.0   0.45 0 30.0  	1.0  0.05  0.0   0.50 -0.20 0.9  0.0  0.30 0.50 25000  2004000  400000  0  1	0CARGOBOB    20000.0   48333.3   0.2    0.0 0.0 -0.1  75  0.65 0.9  0.5  	1 200.0 16.0 5.0  4 P  5.0   0.45 0 30.0  	0.6  0.05  0.0   0.50 -0.10 0.3  0.0  0.30 0.50 25000  22004000	400000  0  1	0RAINDANC    10000.0   96666.7   0.05   0.0 0.0 -1.0  75  0.65 0.9  0.5  	1 200.0 16.0 5.0  4 P  5.0   0.45 0 30.0  	1.5  0.1   0.0   0.20 -0.15 0.5  0.0  0.70 0.50 99000  2004000  400000  0  1	0RCBARON       100.0      50.0   120.0  0.0 0.0  0.0  99  0.20 0.9  0.5  	1  75.0  1.0 5.0  F P  0.5   0.50 0 45.0  	0.6  0.1   0.0   0.25 -0.00 0.8  0.0  0.2  0.08   300  4000000  20  	0  1	0RCGOBLIN      100.0      24.1   0.2    0.0 0.0 -0.1  70  1.10 0.75 0.50  1  75.0 35.0 5.0  4 P  5.5   0.50 0 25.0  	1.6  0.1   0.0   0.28 -0.08 0.5  0.0  0.2  0.05   800  2000000  0  	0  1	0RCRAIDER      100.0      24.1   0.2    0.0 0.0 -0.1  70  1.10 0.75 0.50  1  75.0 35.0 5.0  4 P  5.5   0.50 0 25.0  	1.6  0.1   0.0   0.28 -0.08 0.5  0.0  0.2  0.10   500  2000000  0  	0  1	0

 

Link to comment
Share on other sites

is it nPercentSubmerged (I)???

 

btw I'm dutch and I have no f*** idea what submerged means

Look at the flag and be jalous tounge.gif

Link to comment
Share on other sites

no, the vortex line makes the car hover above the water, and I was right I tried I and the car floats, BUT the wheels don't hit the bottom, so I can't drive.

 

Again I tried to search for opcodes and didn't find anything useful, so I need a opcode that makes cars drive on water (like boats)

Link to comment
Share on other sites

Why the hell you make a second topic? Cars Drive on Water cheat isn't enough?

 

 

Again I tried to search for opcodes and didn't find anything useful, so I need a opcode that makes cars drive on water (like boats)

 

 

Does not exist.

Link to comment
Share on other sites

But hte problem at the other script is, that it doesn't really look like its floating, but it looks like iy hovers above the water, and I never saw a amphibious vehicles doing that before!

Link to comment
Share on other sites

I found a way to do this, but I don't really now how this memory thing works.

 

If the car enters the water the handling will change (the player presses a key when the car enters the water):

 

 

Handling

 

0xC2B9DC - Handling Block Start. Each slot has 224 bytes of data.

+0x0 = [dword] Index/Identifier

+0x4 = fMass

+0x8 = 1.0 / fMass

+0xC = fTurnMass

+0x10 = fDragMult

+0x14 = CentreOfMass.x

+0x18 = CentreOfMass.y

+0x1C = CentreOfMass.z

+0x20 = [byte] nPercentSubmerged

+0x24 = fMass * 8.0000001e-1 / nPercentSubmerged

+0x28 = fTractionMultiplier

+0x74 = [byte] TransmissionData.nDriveType

+0x75 = [byte] TransmissionData.nEngineType

+0x76 = [byte] TransmissionData.nNumberOfGears

+0x7C = TransmissionData.fEngineAcceleration (Multiplied by 3.9999999e-4)

+0x80 = TransmissionData.fEngineInertia

+0x84 = TransmissionData.fMaxVelocity (Multiplied by 5.5555599e-3)

+0x94 = fBrakeDeceleration (Multiplied by 3.9999999e-4)

+0x98 = fBrakeBias

+0x9C = [byte] bABS

+0xA0 = fSteeringLock

+0xA4 = fTractionLoss

+0xA8 = fTractionBias

+0xAC = fSuspensionForceLevel

+0xB0 = fSuspensionDampingLevel

+0xB4 = fSuspensionHighSpdComDamp

+0xB8 = Suspension upper limit

+0xBC= Suspension lower limit

+0xC0 = Suspension bias between front and rear

+0xC4 = Suspension anti-dive multiplier

+0xC8 = fCollisionDamageMultiplier (multiplier not yet found)

+0xCC = [hex] modelFlags

+0xD0 = [hex] handlingFlags

+0xD4 = fSeatOffsetDistance

+0xD8 = [dword] nMonetaryValue

+0xDC = [byte] Front lights

+0xDD = [byte] Rear lights

+0xDE = [byte] Vehicle anim group

 

 

0A8C: write_memory 0xC2B9DC size 4 value 1 virtual_protect 00A8C: write_memory 0x0B size 1 value 1 virtual_protect 0

 

 

 

+0x0 = [dword] Index/Identifier

 

So it should look like this (I made it 11)????

 

0A8C: write_memory 0x0B size 1 value 1 virtual_protect 0

 

 

And do you have to + it like that?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.