Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Undercover - Sort Of Working  (Read 3763 times)

0 Members and 1 Guest are viewing this topic.

Offline Shadow.D. ^BOB^

  • Members
  • *
Undercover - Sort Of Working
« on: 15 Jul 2011, 21:53:13 »
Hey guys, i really hope someone can help me out with this.  First of all i have searched and based of a couple of previous posts have come up with a sort of working template.

I am using a script by LAGGY to set captive false, when a blufor fires in the vicinity of opfor which is fine.  Then i have combined a little snippet by Wolfrug to detect if the player is within 10m of opfor to be detected and again setcaptive false.

The problem i have is that Wolfrugs solution uses a trigger moved to the players position every 0.5 seconds with a 10x10 circle looking for opfor presence. This is fine, but is there a way i can make this MP compatible?

Bascically i would like it so that if you fire within range of opfor you are detected, then again if you get within 10m or so they will detectt you.  This needs to be MP compatible.

Additionally if there is a way for opfor to detect if blufor has a rifle in hand they will detect you.  ut i really dont know how i would do this.

I have attached the template as i have it so far, i would be grateful if someone could take a look.



« Last Edit: 15 Jul 2011, 21:59:54 by Shadow.D. ^BOB^ »

Offline Pirin

  • Members
  • *
Re: Undercover - Sort Of Working
« Reply #1 on: 16 Jul 2011, 08:14:54 »
War In Takistan has a nice "undercover" MP compatible system in it.

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re: Undercover - Sort Of Working
« Reply #2 on: 16 Jul 2011, 09:57:27 »
Moved this here, since it's about MP-scripting :) Sadly, I don't know how to make this work, but IIRC triggers (that aren't spawned, but are placed at mission start) are by default "global", and should therefore, maybe, already be MP-compatible in one way or another? Don't quote me on that, but that's what I've heard. Maybe describing what kind of situation you want this to function in might help?

Wolfrug out.
"When 900 years YOU reach, look as good you will not!"