Home   Help Search Login Register  

Author Topic: Head Shot!  (Read 3057 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