Jobikukal Posted September 19, 2005 Share Posted September 19, 2005 (edited) Hello! I'm doing a little movie in Vice City (using CamHack) and I wanted to know how can Tommy (or any NPC)I take out cellphone from pocket and hold it near the ear? In game it happens so often, so it would be no big trick to do some editing in .... main.scm maybe? I don't want to learn whole coding thingie, I just need little bit tweaked main.scm where I can "answer" the phone with character. Thank you, J Kukal [email protected] Edited September 19, 2005 by Jobikukal Link to comment Share on other sites More sharing options...
Yegorchic Posted September 19, 2005 Share Posted September 19, 2005 I think, phone is like weapon. And "hold it near the ear", I think, you can by animations. Link to comment Share on other sites More sharing options...
Demarest Posted September 19, 2005 Share Posted September 19, 2005 (edited) :LabelCELL03A4: name_thread "CELL":LabelCELL20001: wait 250& ms00D6: if 0?0256: player $PLAYER_CHAR defined004D: jump_if_false ££LabelCELL200D6: if 2?80E0: NOT player $PLAYER_CHAR driving00E1: key_pressed 0? 6?00E1: key_pressed 0? 16?004D: jump_if_false ££LabelCELL20247: request_model #CELLPHONE:LabelCELLLOOP0001: wait 0? ms00D6: if 0?0248: model #CELLPHONE available004D: jump_if_false ££LabelCELLLOOP052B: actor $PLAYER_ACTOR hold_cellphone 1?:LabelCELL30001: wait 250& ms00D6: if 0?0256: player $PLAYER_CHAR defined004D: jump_if_false ££LabelCELLEND00D6: if 2?80E0: NOT player $PLAYER_CHAR driving00E1: key_pressed 0? 6?00E1: key_pressed 0? 16?004D: jump_if_false ££LabelCELL3052B: actor $PLAYER_ACTOR hold_cellphone 0?:LabelCELLEND0249: release_model #CELLPHONE0002: jump ££LabelCELL2 Edited September 19, 2005 by Demarest Link to comment Share on other sites More sharing options...
random_download Posted September 19, 2005 Share Posted September 19, 2005 Doesn't the cellphone model have to be loaded too? Link to comment Share on other sites More sharing options...
Y_Less Posted September 19, 2005 Share Posted September 19, 2005 No, its a part of the player model, it doesn't use model opcodes, it uses cellphone opcodes, otherwise you would need to move the model in the path of the arm, which you don't. Link to comment Share on other sites More sharing options...
Demarest Posted September 19, 2005 Share Posted September 19, 2005 Well they did in original code, so I would assume it needs to be done not unlike any weapon does. Rather than reposting code, I'll just edit the above so erroneous code is no longer published Link to comment Share on other sites More sharing options...
Jobikukal Posted September 19, 2005 Author Share Posted September 19, 2005 Thank you! But since I'm new to any coding, is it possible to get already tweaked main.scm or something from you? I'd really appreciate that:) J Kukal Link to comment Share on other sites More sharing options...
Demarest Posted September 19, 2005 Share Posted September 19, 2005 (edited) First of all, I want you to know that I'm very selective about the requests I take. In fact, those that pop in and say "can I have this?" usually are encouraged to learn it themselves. Not sure why I felt like it, but it was a quickie, so why not. Secondly, since you are new to code stuff, BACKUP your /data/main.scm before using this. Then when this new one is in place, start a new game. link I won't keep it hosted forever, so please let me know when you've got it. For whatever reason, when you run this in game, Tommy sometimes turns sideways. It's hilarious. You can fix it by just moving. Almost forgot to mention: You answer the phone and/or put it away by pressing Sprint and Aim simultaneously. Edited September 20, 2005 by Demarest Link to comment Share on other sites More sharing options...
Jobikukal Posted September 20, 2005 Author Share Posted September 20, 2005 Hello! I really appreciate it:) YOu know, I quite have no time in learning the code, therefore I asked you this one favor. I'm sure that I put up the link of my clip later. Thank you again, J Kukal Link to comment Share on other sites More sharing options...
Y_Less Posted September 20, 2005 Share Posted September 20, 2005 Ok, my bad, sorry. Link to comment Share on other sites More sharing options...
ceedj Posted September 22, 2005 Share Posted September 22, 2005 J, I got your PM from Machinima.com. This will be in the next version of Vice Studios; I've just been so busy recording dialog that I haven't had a chance to implement it. Hopefully next week sometime. I'm actually not against democracy though. I'm against things I think are f*cking stupid. I think this is f*cking stupid. - Sweets Link to comment Share on other sites More sharing options...
Jobikukal Posted September 23, 2005 Author Share Posted September 23, 2005 Very cool! What would I do without Vice Studios? J Kukal Link to comment Share on other sites More sharing options...
ceedj Posted September 28, 2005 Share Posted September 28, 2005 I find it completely hilarious that the people who have the largest criticisms of the show (writing, acting, etc) are the FIRST people to ask "how did you do that?" No offence taken or anything; I just find it funny. Anyway, new version of VS, with Cellphones! Vice Studios, version 2.2 09/27/05 - Version 2.2, Eighth build. - Fixed the "only animates last ped created" bug (previously version 2.1a) - Added cellphones! Use a ped MODIFIER and F5 to talk, and use a MODIFER and F6 to turn it off. Use with the "P" key to have the player talk on a cellphone. BUT, for the player, do NOT try F6 first and then F5. For some reason, when going back to F6 again, it crashes the game. This ONLY happens if you hit P + F6 first, then P + F5 and P + F6. It seems to work fine if you use P + F5 THEN P + F6. Oddly, this crash does NOT occur with normal peds. - Added a special "DummyPed" for use with Walk/Run to commands. To create, simply press INSERT + C. This works REALLY nice if you have the "invisible skin" mod installed. Now, all peds walk/run to this dummy ped when commanded. The game will tell you if you need to create the dummy ped. It seems to work best when you create the "DummyPed" LAST, so the other actors have proper coords to walk/run to. - BETA - Added some camera controls for the Group 2 peds. Use C + 1 to set the camera on Grp2Ped1 and C + 2 to set the camera on Grp2Ped2. Use C + SPACEBAR to reset the camera behind the player. You MUST have the two peds created first, or the game WILL CRASH. This will be fixed if/when I add more camera controls for the other peds/groups. Enjoy! I'm actually not against democracy though. I'm against things I think are f*cking stupid. I think this is f*cking stupid. - Sweets 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