XetaQuake Posted February 29, 2008 Share Posted February 29, 2008 hi, can someone make a script to enter the submarine and the aircraft carrier to drive with it? this would be very funny for all i think its just a funny idea for a script Link to comment
Woovie Posted March 1, 2008 Share Posted March 1, 2008 We can do it on FRC. We have a /attach command. =) Link to comment
Mr.Hankey Posted March 1, 2008 Share Posted March 1, 2008 simply attach the submarine object to a dinghy =) Link to comment
XetaQuake Posted March 1, 2008 Author Share Posted March 1, 2008 good idea! can somebody make me a script that the submarine is attached to ONE dingy? so not all dingys but one? or isnt this possibly because the ID is the same on every dingys? Link to comment
50p Posted March 1, 2008 Share Posted March 1, 2008 good idea!can somebody make me a script that the submarine is attached to ONE dingy? so not all dingys but one? or isnt this possibly because the ID is the same on every dingys? What ID? This is not SA:MP where vehicles have IDs, here vehicles are elements. If the submarine has collision then how would you get in the dinghy which is inside the submarine? Link to comment
Mr.Hankey Posted March 1, 2008 Share Posted March 1, 2008 If the submarine has collision then how would you get in the dinghy which is inside the submarine? Use a command or an enter marker that is attached to the submarine but i think you still have to disable the collision of the submarine because the normal 3rd person camera of the dinghy would be blocked by the collision of the submarine... Link to comment
50p Posted March 1, 2008 Share Posted March 1, 2008 Can you imagine submarine at the speed of dinghy. Wouldn't that be too fast? Link to comment
XetaQuake Posted March 1, 2008 Author Share Posted March 1, 2008 hmm the speed is ok for a aktion game i think, but its very sad that the submarine/dingy can´t diving. so i think the dingy is perfect for the aircraft carrier, but there is the problem that i need collisions for the aircraft carrier Link to comment
Mr.Hankey Posted March 1, 2008 Share Posted March 1, 2008 you can still set the cameramode to fixed and place the camera somewhere behind the carrier and update the position and rotation every frame but as in another topic shown that can look really crappy... Link to comment
iam2noob4u Posted March 9, 2008 Share Posted March 9, 2008 About the carrier, maybe you can use http://nikt.zog.net.au/DRuG/news.php (search for Easter Bay Aircraft Carrier Vehicle), it's a .dff and a .txd file, but they are 5.55 MB together. When DP3 is released, you can also change the handling, so you can make it realistic Link to comment
XetaQuake Posted March 9, 2008 Author Share Posted March 9, 2008 nice that's realy good! but here a 2 reasons why i dont want to use this method: 1. In MTA:DM custom vehicles are white, only when the client reconnect the vehicle get a working texture, that's a little bit strange for the players 2. ca. 6MB its a little bit to much, and not so good for the server traffic Link to comment
Mr.Hankey Posted March 10, 2008 Share Posted March 10, 2008 1. In MTA:DM custom vehicles are white, only when the client reconnect the vehicle get a working texture, that's a little bit strange for the players not really, normally that happens because the textur isn't loaded before it's applied to the vehicle so either you fix the script so it works or you just call the replace function twice then it should work too Link to comment
XetaQuake Posted March 10, 2008 Author Share Posted March 10, 2008 hmm ok but i think this script is correct function replaceModel() txd = engineLoadTXD ( "hunter.txd" ) engineImportTXD ( txd, 425 ) dff = engineLoadDFF ( "hunter.dff", 425 ) engineReplaceModel ( dff, 425 ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) Link to comment
Mr.Hankey Posted March 10, 2008 Share Posted March 10, 2008 then try my second suggestion: function replaceModel() txd = engineLoadTXD ( "hunter.txd" ) engineImportTXD ( txd, 425 ) dff = engineLoadDFF ( "hunter.dff", 425 ) engineReplaceModel ( dff, 425 ) setTimer (replaceModel, 1000, 1) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) Link to comment
iam2noob4u Posted March 10, 2008 Share Posted March 10, 2008 ca. 6MB its a little bit to much, and not so good for the server traffic 6MB is too much yes... maybe someone can make the tropic model, but with the solid stuff of the carrier... and then just attach the carrier model to it. You could also make the model really simple, like 1 small square [model], and 1 huge square [solid], and then attach the carrier model to it. I don't even know if that's possible as I'm not a modder, but just telling you my idea's Link to comment
XetaQuake Posted March 10, 2008 Author Share Posted March 10, 2008 @ Hankey: ah good idea! and it works, but not right here is a demonstration movie: http://www.xup.in/dl,78140261/Film.wmv you can see the timer works too when the textur is loaded and the model are every 1 second replace, but your idea with the timmer is realy great! anyone a idea too fix this? Link to comment
Mr.Hankey Posted March 10, 2008 Share Posted March 10, 2008 wtf?! every second??? setTimer (the_function, 1000, 1) should call the function just one other time after it was executet not forever... Link to comment
Jumba' Posted March 10, 2008 Share Posted March 10, 2008 hmm the speed is ok for a aktion game i think, but its very sad that the submarine/dingy can´t diving.so i think the dingy is perfect for the aircraft carrier, but there is the problem that i need collisions for the aircraft carrier isnt it possible to disable collisions only to other vehicles and leave it enabled for players? Link to comment
XetaQuake Posted March 10, 2008 Author Share Posted March 10, 2008 wtf?! every second??? setTimer (the_function, 1000, 1) should call the function just one other time after it was executet not forever... show the movie, a movie says more then 1000 words //EDIT: i mean this movie: http://www.xup.in/dl,78140261/Film.wmv Link to comment
XetaQuake Posted March 12, 2008 Author Share Posted March 12, 2008 Now i have try it a little bit: its still the same: SetTimer make problems for the clients, the model replace EVERY TIME in a rhythm from 1 second (because setTimer (replaceModel, 1000, 1)) after ca. 1 minute the client crash, i think its because the model replace and replace and replace.... see the movie, it explain the problem perfect: http://www.xup.in/dl,78140261/Film.wmv (by the way, the end from the movie is because i crash) i think we need a timer that only replace the model only one times (Actually doing it already, i know, but it dont work yet) here is my currently code: function replaceModel() txd = engineLoadTXD ( "hunter.txd" ) engineImportTXD ( txd, 425 ) dff = engineLoadDFF ( "hunter.dff", 425 ) engineReplaceModel ( dff, 425 ) setTimer (replaceModel, 1000, 1) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) anybody a idea to fix this strange problem? Link to comment
tma Posted March 12, 2008 Share Posted March 12, 2008 function replaceModel() txd = engineLoadTXD ( "hunter.txd" ) engineImportTXD ( txd, 425 ) dff = engineLoadDFF ( "hunter.dff", 425 ) engineReplaceModel ( dff, 425 ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), function() replaceModel() setTimer (replaceModel, 1000, 1) end ) Something like that to just replace it twice (untested). Link to comment
XetaQuake Posted March 12, 2008 Author Share Posted March 12, 2008 WOW i_t__w_o_r_k_s thanks! so problem 1 is solved, now the second problem: 2. ca. 6MB its a little bit to much, and not so good for the server traffic But i dont know how you all can help me with this, i think i need to search a model that is not so big or so. Thanks for all! Link to comment
Mr.Hankey Posted March 12, 2008 Share Posted March 12, 2008 omg now i feel really stupid becausei didn't notice the obviouse reason why the function was called every second Link to comment
Ace_Gambit Posted March 12, 2008 Share Posted March 12, 2008 so problem 1 is solved, now the second problem:2. ca. 6MB its a little bit to much, and not so good for the server traffic But i dont know how you all can help me with this, i think i need to search a model that is not so big or so. Thanks for all! That can't be solved unless you create your own low polygon version of the carriers. That's the price you'll have to pay for wanting to have that model in you game mode . Link to comment
Ace_Gambit Posted May 7, 2008 Share Posted May 7, 2008 Sorry for bumping, but you might find this interesting. It is pretty much the same idea but without the cost of +5MB and unlike the East bay Carrier this does include interior objects. Beta Carrier 1.0 https://community.multitheftauto.com/index.php?p= ... ils&id=134 Link to comment
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