Currently the developers are putting their own money into JC2-MP to keep the servers online.

Please take a few seconds of your time and disable your AdBlock plugin for our website.

Ad revenue is not going to developers, it is used purely for covering our hosting costs.

 

You are also free to donate, which removes all ads from our website!

Patch 0.3 was just released! Full changelog here: https://t.co/4A50m6IKen

8 months ago

January 24, 2018, 10:17:39 am
  • [Release] Opens Doors 5 1
Currently:  

Author Topic: [Release] Opens Doors  (Read 411 times)

MrQWERTYU

  • Newbie
  • *
  • Posts: 9
    • View Profile
[Release] Opens Doors
« on: December 20, 2017, 07:43:05 pm »
Hello! ;D
I created a new script that allows you to open the doors of military bases. The script itself is pretty simple, but sometimes it can be useful.

How to use:
Press L to open the doors of the military bases.

Download github:
https://github.com/Hallkezz/OpensDoors

Screenshots:



Video demonstration:
https://www.youtube.com/watch?v=qvqFcNaudYY

Pleasant use! :)

rui_troia

  • Hero Member
  • *****
  • Posts: 713
    • View Profile
Re: [Release] Opens Doors
« Reply #1 on: December 25, 2017, 10:02:11 pm »
interessing

Trap

  • Donator
  • Full Member
  • *****
  • Posts: 188
    • View Profile
Re: [Release] Opens Doors
« Reply #2 on: December 26, 2017, 06:40:58 pm »
Would be cooler to have an animation to it, don't know if that is possible.

MrQWERTYU

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: [Release] Opens Doors
« Reply #3 on: December 26, 2017, 07:23:24 pm »
Although I could not find a way to do this, but opening the mouth at the dome has an animation.

Dev_34

  • Full Member
  • ***
  • Posts: 154
    • View Profile
Re: [Release] Opens Doors
« Reply #4 on: December 29, 2017, 04:39:43 am »
If you wanted to animate this you would have to find the model id and collision for the door object and then spawn it is a StaticObject with the API. Then you could set the 'fixed' property to false on the StaticObject and simply change the y-component of the Vector3 position of the staticobject when you press L.

Anyway, interesting to see someone post a script.

MrQWERTYU

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: [Release] Opens Doors
« Reply #5 on: January 02, 2018, 01:16:03 pm »
Can you tell the model and the collision of the doors?
« Last Edit: January 11, 2018, 08:56:00 pm by MrQWERTYU »

Dev_34

  • Full Member
  • ***
  • Posts: 154
    • View Profile
Re: [Release] Opens Doors
« Reply #6 on: January 12, 2018, 03:40:21 am »
You can find the model and collision using Trix's model viewer module: https://github.com/trixnz/jc2mp-model-viewer/
That's if you're dedicated enough

MrQWERTYU

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: [Release] Opens Doors
« Reply #7 on: January 20, 2018, 11:09:59 pm »
Thank!