M'kay Posted May 26, 2006 Share Posted May 26, 2006 I have created a garage of my own with the construction tool and want to spawn my cars inside it when activated by changing the spawn point in the code. The only part in the car mod code... #cheat Thunda Killa - PIMPED: 189-HOTRODsetshort(0x99300B2, 0x54, 0x68, 0x75, 0x6e, 0x64, 0x61, 0x20, 0x4b, 0x69, 0x6c, 0x6c, 0x61);setchar(0x945d1b2, 0x5);setchar(0x945d1b1, 0x50);setchar(0x945d1b0, 0x34);setshort(0x9445310, 250);setfloat(0x944530c, 0.90);setfloat(0x945d130, 1400);setfloat(0x945d138, 0.7);setfloat(0x945d1f0, 0.2);setfloat(0x945d1f4, -0.125);setfloat(0x945d1f8, 0.4);setfloat(0x945d1bc, 1.25);setfloat(0x945d1c0, 1.25);setfloat(0x945d1b4, 0.00287);setfloat(0x945d1d0, 0.5625);setfloat(0x945d1d4, 0);setfloat(0x945d1d8, 30);setfloat(0x945d1e8, 0.875);setfloat(0x945d1ec, 0.13125);setfloat(0x945d204, 0.255);setfloat(0x945d1fc, 0.3);setfloat(0x945d150, 0);setfloat(0x945d154, 0.3);setfloat(0x945d158, -0.29999);setchar(0x945d160, 75);setfloat(0x945d1dc, 0.84375);setfloat(0x945d1e0, 0.51);setfloat(0x945d13c, 0.85714);sethex(0x945d200, 0x93, 0x81, 0x00, 0x03);setchar(0x967E6FC, 0xFF, 0x00, 0xFF);sethex(0x944fb08, 0x03, 0x03, 0x03);sethex(0x944fb38, 0xFF, 0x00, 0x02);setint(0x8E38A38, 189);setchar(0x8E38A5C, 106, 118);sethex(0x8E38A5E, 0x01, 0x00);teleport(292.22, -440.37, 26.02);setchar(pplayer + 0xB84, 0x00); ...that shows a coordinates location is the one at the end to teleport the person outside of the garage (already changed that to the coordinates outside of my garage where I want the guy to spawn) but don't see where exactly in the code it shows where the car spawns. I went on PMG and made the car above the exact same except this time put it to spawn at the Portland Garage and compared the two codes. The only difference between the codes other than the guy spawn location was two lines above the guy's coordinates. On the Staunton spawn the line says setchar(0x8E38A5C, 122, 104); and the Portland spawn the line says setchar(0x8E389AC, 112, 117); If this indeed is the place to show where the car spawns, could someone either tell me how to translate it into code (or quickly translate it if you know how) into proper code for the car to spawn at (234.44, -503.80, 26.99). If this isn't the line of code to show where the car spawns, where is it at (or could someone repost the code with the proper car coordinates that I want)? Thanx for any help! Link to comment Share on other sites More sharing options...
vettefan88 Posted May 26, 2006 Share Posted May 26, 2006 setchar(0x08E4Eb4c, 189);setchar(0x08E4Eb4c + 0x18, 0x01);setfloat(0x08E4Eb50, X, Y, Z, A); replace X, Y, and Z with the coordinates. and A with the direction it faces. 0=north 90=west 180=south 270=east Link to comment Share on other sites More sharing options...
M'kay Posted May 26, 2006 Author Share Posted May 26, 2006 (edited) setchar(0x08E4Eb4c, 189);setchar(0x08E4Eb4c + 0x18, 0x01);setfloat(0x08E4Eb50, X, Y, Z, A); replace X, Y, and Z with the coordinates. and A with the direction it faces. 0=north 90=west 180=south 270=east thanx, but I dont see that in my code. there isnt a part where theres 2 chars then a float with 5 sets of # in it. do I add it in? are you sure its a float? if i confuse you more than im confused, could you plug in my coordinates in my code? also i compared another 2 identical cars, but one spwns at staunton and the other doesnt even spawn. the difference is the one that doesnt spawn but is seen on the road is missing this a couple of lines of code compared to the one that spawns at satunton. heres the stuanton lines that are missing from the non-spawn car: setint(0x8E38A38, 140);setchar(0x8E38A5C, 123, 116);sethex(0x8E38A5E, 0x01, 0x00);teleport(292.22, -440.37, 26.02); if i have this right are you saying i should change this in at the right place in the code: setint(0x8E38A38, *X*);setchar(0x8E38A5C, *Y*, *Z*);sethex(0x8E38A5E, 0x01, *A*);teleport(spawn guy coordinates); Edited May 26, 2006 by M'kay Link to comment Share on other sites More sharing options...
xFinch713x Posted May 26, 2006 Share Posted May 26, 2006 setchar(0x08E4Eb4c, 189);setchar(0x08E4Eb4c + 0x18, 0x01);setfloat(0x08E4Eb50, X, Y, Z, A); replace X, Y, and Z with the coordinates. and A with the direction it faces. 0=north 90=west 180=south 270=east thanx, but I dont see that in my code. there isnt a part where theres 2 chars then a float with 5 sets of # in it. do I add it in? are you sure its a float? if i confuse you more than im confused, could you plug in my coordinates in my code? also i compared another 2 identical cars, but one spwns at staunton and the other doesnt even spawn. the difference is the one that doesnt spawn but is seen on the road is missing this a couple of lines of code compared to the one that spawns at satunton. heres the stuanton lines that are missing from the non-spawn car: setint(0x8E38A38, 140);setchar(0x8E38A5C, 123, 116);sethex(0x8E38A5E, 0x01, 0x00);teleport(292.22, -440.37, 26.02); if i have this right are you saying i should change this in at the right place in the code: setint(0x8E38A38, *X*);setchar(0x8E38A5C, *Y*, *Z*);sethex(0x8E38A5E, 0x01, *A*);teleport(spawn guy coordinates); no .... make it a new code and when you activate it it will be there, or if you add it on... just take out the teleport on the bottom and the GARAGE spawn part... setint(0x8E38A38, 140);setchar(0x8E38A5C, 123, 116); just take that out along with the teleport and put the new part.... setint(0x8E38A38, *X*);setchar(0x8E38A5C, *Y*, *Z*);sethex(0x8E38A5E, 0x01, *A*); there... and i dont think you need the teleport Link to comment Share on other sites More sharing options...
M'kay Posted May 26, 2006 Author Share Posted May 26, 2006 (edited) not working. the thing is i wonder if this: setint(0x8E38A38, *X*);setchar(0x8E38A5C, *Y*, *Z*);sethex(0x8E38A5E, 0x01, *A*); is wrong becasue the A spot used to be0x00 and not a normal #. something doesn't add up right. sorry to ask (no im not lazy but confused) but can someone plug in the right coordinates I need into the code (coordinates for new car spawn are (236.07, -503.84, 26.17, 270.00) or X=236.07 Y=503.84 Z=270.00 A=270. also the person spawn is (252.76, -506.44, 26.02) or X=252.76, Y=-506.44, Z=26.02. thanx! Edited May 26, 2006 by M'kay Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now