Jump to content

Sim Copter, Code Review


itpro4470

Recommended Posts

For those of you that remember a game back in the day called SimCopter you would use a helicopter to complete numerous tasks; VIP Transport, Police chases, Fire, Rescue etc... I'm currently working on a SimCopter mod with Rage and the LSPDFR mod to bring more life to air support. I'm hoping that there is someone out there more experienced with the Rage and LSPDFR APIs to review my code and/or help out with development. If you're interested let me know and thanks in advance!

Link to comment
Share on other sites

That would be AMAZING I spent hours on SimCopter back in the day!

 

Thanks.. Already have a prisoner transport callout done where you pickup a prisoner and two guards from one police station and fly them to another police station or the prison.

Working on the following callouts:

  • VIP Transport
  • Medivac
  • Mountain Rescue
  • Rooftop Rescue
  • Boat Rescue
  • Fire Support
  • Car Chase
  • Gang War

Other features I'd like to include:

  • Ability to dispatch EMS
  • Ability to dispatch Fire
  • SPOTLIGHT!!!
  • Ranking system

Still trying to work out some bugs in the Prisoner Transport call out like when I assign a ped a task such as _policeOfficer.Tasks.EnterVehicle(Game.LocalPlayer.LastVehicle, 10000, 0); sometimes the ped does nothing and is teleported after the timeout. I think if I put them in the player group they'll get in the vehicle but I don't have time to test it tonight..

Link to comment
Share on other sites

Damn, nice idea. I totally forgot about SimCopter! I used to play that game for HOURS on end!

If you want to turn this into a team project, we can set up a TFS project on Visual Studio Online.

EDIT: The biggest hurdle (or one of) you're probably going to run into is LSPDFR sending you callouts that are meant for ground units. A player in the helicopter may have to wait a long time for an air support callout.

And vice versa too...you'll get ground units being dispatched to mountain rescues. Although that one is easy to overcome, actually. Just abort the callout (i.e. don't display it to the user) if the player is not in the Maverick.

Edited by Stealth22

Stealth22
LSPDFR Tester | Plugin Developer
My Plugins: Code 3 Callouts | Traffic Control | Keep Calm | ALPR+

Please do not PM me for any kind of technical support.
I unfortunately do not have enough free time to answer every PM that I get. For issues with my plugins, please post in the comments section of the file, or it's forum thread. You'll get a much quicker response from me there than if you send me a PM; I do my best to respond to every question in the comments sections. For API/programming questions, please post them in the API Development forum, so all developers can benefit from the answer as well. Thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...