ULX

Author Topic: Help with physgun script  (Read 1868 times)

0 Members and 1 Guest are viewing this topic.

Offline nickbg7n

  • Newbie
  • *
  • Posts: 6
  • Karma: 1
Help with physgun script
« on: March 07, 2016, 06:42:16 PM »
Hello, i have a script that i would love some help with.

The script i have basically no-collides your props when you physgun it. This prevents prop pushing/killing/flying/surfing/pushing from happening.

I have had some complaints where users are able to physgun higher ranks props, but are not allowed to physically move the prop, but the prop then becomes no-collided making them able to walk through it.

I have talked to the Owner of this script and he suggested putting it in this thread to have further assistant with it, as he is not familiar with it.

Thank you in advance for the assistance, i will give you the code if needed.

~ Nickbg7n

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Help with physgun script
« Reply #1 on: March 07, 2016, 09:14:29 PM »
To clarify:

This is a script I wrote for him. It's using a PhysgunPickup hook to do the prop ghosting/etc.
He is using FPP as a prop protection and what is happening is my script hook is being called first so the prop gets nocollided when grabbed, but then FPP hook is called and does the prop protection which stops the players from actually grabbing the prop.

Since I can't force my hook to be called after FPPs there needs to be some FPP ownership checking in my hook, however, I'm unfamiliar with FPP or how it does permission checking.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Help with physgun script
« Reply #2 on: March 07, 2016, 09:20:52 PM »
Nevermind. I forgot about CCPI. :D :D :D
I should be able to help him.

Offline nickbg7n

  • Newbie
  • *
  • Posts: 6
  • Karma: 1
Re: Help with physgun script
« Reply #3 on: March 08, 2016, 12:19:34 PM »
Got this problem fixed. Thank you President for your help!