ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Clear Sky Forum » Mod discussion
S.T.A.L.K.E.R: The Faction War

« Previous 10 events | 1 ... 7 8 9 10 11 12 13 14 15 ... 209 | Next 10 events »
Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  16:23:53  6 February 2011
profilee-mailreply Message URLTo the Top
smoq2
Forklift operator
(Resident)

 

 
On forum: 09/08/2008
Messages: 2433

---QUOTATION---
smoq: Yeah, but that's for NPC hit, right?

xr_motivator.motivator_binder:hit_callback()
---END QUOTATION---



Yeah, naturally. You're referring to the previous discussion regarding non-existent actor hit callbacks, right?

The function I mentioned above is located in sim_combat.script, called by xr_motivator.motivator_binder:hit_callback() and it is binded only to stalker class NPCs. (I think that monster hit callbacks are bound to bind_monster.script.)

To clarify, the function I gave the link to, is suppose to make companions attack a friendly target if the player decides to do so himself. It also make Loners protect each other if they are in a group and the player attacks them. In general, the function ensures there are no such occasions where the player is attacked and companions do nothing because they think the attackers are actually friendlies. It does not affect enemy detection or automatic switch to alert mode.
  16:38:11  6 February 2011
profilee-mailreply Message URLTo the Top
gannebamm
has abondened XRay and uses Unity3D now
(Resident)

 

 
On forum: 05/02/2007
Messages: 1077

---QUOTATION---
is suppose to make companions attack a friendly target if the player decides to do so himself
---END QUOTATION---


yeah that was what i though about. NPC:hit_callback if NPC was hit by actor then set companion best enemy NPC (if companion has no npc as enemy currently).
Furthermore you could use a workaround to get kind of a actor hit callback by constantly checking his health with the last health. If his new health is lower and he isnt radiated, then the chance is very high that somewhat has hit him (that way combat effectors work). This could be used to get your companions to your position or set them in alert mode.
  16:48:45  6 February 2011
profilee-mailreply Message URLTo the Top
mnn
Senior Resident
 

 
On forum: 06/12/2009
 

Message edited by:
mnn
02/06/2011 16:54:11
Messages: 2694
Just to let you know, there is a project, which aim is to hack xrGame.dll to bring engine side fixes and "addons".

However, AFAIK the hacks are designed for CoP.

One of the hacks is exactly actor hit callback. It's somewhere on Google Code, I don't remember it's address.

Edit: They've added SoC and CS support. Here's their website:
http://code.google.com/p/xray-extensions/
  17:57:40  6 February 2011
profilee-mailreply Message URLTo the Top
smoq2
Forklift operator
(Resident)

 

 
On forum: 09/08/2008
Messages: 2433

---QUOTATION---
Just to let you know, there is a project, which aim is to hack xrGame.dll to bring engine side fixes and "addons".

However, AFAIK the hacks are designed for CoP.

One of the hacks is exactly actor hit callback. It's somewhere on Google Code, I don't remember it's address.

Edit: They've added SoC and CS support. Here's their website:
http://code.google.com/p/xray-extensions/
---END QUOTATION---



Thanks, but I have no idea how to work with those applications there. I'd rather not mess with the dll files, first of all, because I don't know how Tages protection in CS will treat meddling with xrGame.dll. Secondly, because I have no experience at all with dll hacking, nor any other programming languages, except lua.
  18:54:19  6 February 2011
profilee-mailreply Message URLTo the Top
mnn
Senior Resident
 

 
On forum: 06/12/2009
Messages: 2694
Well, only one way to find out!

It has really nice goodies for CS:
- some fix with "corpse detection"
- new functions on game_object:
- set_fuel
- get_fuel
- get_fuel_tank
- set_fuel_consumption
- get_fuel_consumption
- get_target_obj
  20:42:14  6 February 2011
profilee-mailreply Message URLTo the Top
smoq2
Forklift operator
(Resident)

 

 
On forum: 09/08/2008
Messages: 2433

---QUOTATION---
Well, only one way to find out!

It has really nice goodies for CS:
- some fix with "corpse detection"
- new functions on game_object:
- set_fuel
- get_fuel
- get_fuel_tank
- set_fuel_consumption
- get_fuel_consumption
- get_target_obj
---END QUOTATION---



If you manage to compile a nice working xrGame.dll, yell. I'm not trying to temper with it, as I don't even know where to start.
  22:44:42  6 February 2011
profilee-mailreply Message URLTo the Top
MacBradley
Senior Resident
 

 
On forum: 02/09/2009
Messages: 890

---QUOTATION---
Just to let you know, there is a project, which aim is to hack xrGame.dll to bring engine side fixes and "addons".

However, AFAIK the hacks are designed for CoP.

One of the hacks is exactly actor hit callback. It's somewhere on Google Code, I don't remember it's address.

Edit: They've added SoC and CS support. Here's their website:
http://code.google.com/p/xray-extensions/
---END QUOTATION---



Woah awesome! I'm going to check this out now. Thanks for posting that link. Might be a good to start a thread for it the CoP Mod Discussion forum as well.
  22:55:45  6 February 2011
profilee-mailreply Message URLTo the Top
mnn
Senior Resident
 

 
On forum: 06/12/2009
Messages: 2694

---QUOTATION---
Woah awesome! I'm going to check this out now. Thanks for posting that link. Might be a good to start a thread for it the CoP Mod Discussion forum as well.
---END QUOTATION---


Well, go ahead, but when I tried it with 1.6.02 xrGame.dll, I only got crash at startup. It was better with CS.

smoq: Well, it patched half-OK. First step OK, second step crash. Game runs although hit callback is not called.
  00:39:52  7 February 2011
profilee-mailreply Message URLTo the Top
Freke
Chris Metzen's Son
(Resident)

 

 
On forum: 03/11/2009
 

Message edited by:
Freke
02/07/2011 0:45:37
Messages: 189
Smoq
I love you.

EDIT
Also, would you mind uploading the file to mediafire? There's no download restriction on that, and I hate downloading at 60kb/s. It's especially gonna suck since this mod file will only get bigger and bigger as it progresses.

Hell, I can do it for you if you want.
  09:03:27  7 February 2011
profilee-mailreply Message URLTo the Top
Rm4g3dD0v
Appointed Destroyer
(Resident)

 

 
On forum: 03/28/2010
Messages: 206
Now playing with legit Clear Sky thanks to x_Spartan_x

From now on, I'm playing with legit Clear Sky thanks to x_Spartan_x, so my feedback's gonna be 100% reliable!
 
Each word should be at least 3 characters long.
Search:    
Search conditions:    - spaces as AND    - spaces as OR   
 
Forum Index » S.T.A.L.K.E.R.: Clear Sky Forum » Mod discussion
 

All short dates are in Month-Day-Year format.


 

Copyright © 1995-2021 GSC Game World. All rights reserved.
This site is best viewed in Internet Explorer 4.xx and up and Javascript enabled. Webmaster.
Opera Software products are not supported.
If any problem concerning the site functioning under Opera Software appears apply
to Opera Software technical support service.