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: Head Shot!  (Read 4190 times)

0 Members and 1 Guest are viewing this topic.

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:Head Shot!
« Reply #15 on: 28 Nov 2005, 18:19:00 »
Ok, here's one with my method ;D :P ::)

Works like a charm (only briefly tested though) although it doesn't use any of that format stuff I mentioned as it's a bitch to get to work with soldier objects... for some reason..
Absolutely no idea whether this works in MP, most likely not..
« Last Edit: 28 Nov 2005, 18:20:37 by HateR_Kint »
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Head Shot!
« Reply #16 on: 28 Nov 2005, 23:16:08 »
another method, using format:

unit addevenhandler ["killed",{_this exec "killer.sqs"}]; unit addeventhandler ["dammaged",{_this exec "dammaged.sqs"}]

init.sqs
Code: [Select]
TRG_counter = 0
killed.sqs
Code: [Select]
call format ["killer%1 = (_this select 1)",TRG_counter]
;insure that the other EH gets the right counter value
~.1
TRG_counter = TRG_counter + 1
exit

dammaged.sqs
Code: [Select]
call format ["?(killer%1 != player):exit",TRG_counter]
_area = _this select 1
?(_area != "hlava"):exit

titletext ["Head Shot","Plain",0.1]
exit

untested, but it should work