Jump to content

HOTWIRING DOOR


unconditional

Recommended Posts

Hi everybody,

scuse me for intrusion :)

If I did not make mistakes ... maybe I could create a script to unlock the doors through use of the hotwirekit...

I did not understand how the system of credits on scripts works ... so I want to clarify that my work was based on a script of @salival to which I wrote in private before publishing this. I waited a week but not having received an answer...i think it is still right to make available to the community as much as I did...
So all the credits go @salival because i am based on his garagedooropener...

Now...this is my work:

-1) custom variable.sqf:

  Reveal hidden contents

-2) custom fn_selfActions.sqf:

  Reveal hidden contents

-3) in custom script folder (under mission folder);

red text in the script below is needed only if you want to log in .rpt when someone try a hotwiring. If you want this, you have to leave red text in the script and you also have to do step 4

  Reveal hidden contents

 

STEP 4 and 5 to do ONLY if you want to see log in .rpt

-4) in inf.sqf (mission folder);

  Reveal hidden contents

-5) in custom script folder (under mission folder);

  Reveal hidden contents

- FINISH :-)

Obviously i think it can be improved and for this reason i make it public, so that those who know more than me can suggest additions or modifications...

For example ... I added a public variable to know via the .rpt file when a hotwire was used and whether it was successful or not.
Maybe you can also add a routine to signal in the map or through text message for all the players that someone is trying to force a door...

I tried it on my server and it seems to work fine.

I await your observations and suggestions.

I repeat: ALL CREDITS GO TO @SALIVAL

Thanks for the attention.

Link to comment
Share on other sites

First of all it's a kinda interesting idea and I always love newcomers that come up with new scripts.

Next up, I recommend you use the forum's code formatting and spoilers because this thread looks horrible. :biggrin:
publicVariables are also a thing I wouldn't recommend since they are a huge security gap. When you really need to send something to the server you should better use publicVariableServer. But since you obviously just need it for writing a debug message in the rpt, you can also use diag_log.

Just a small peak for formatting and preventing publicVariables:

  Reveal hidden contents

 

Link to comment
Share on other sites

  On 2/6/2018 at 7:21 PM, BigEgg said:

@DAmNRelentless, this would be sent to client rpt, not server rpt.

Expand  

True, you are right. That's why I mentioned publicVariableServer. With that, you don't even have to whitelist it in battleye.

If you want it in server RPT send the message in a variable as publicVariableClient and then create an eventhandler server-side which uses diag_log to post it in the server RPT. :)

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Discord

×
×
  • Create New...