Is monster ally?
I wanted to check to see if the monster killed, is a ally using the SvenCoop module. I tryed makeing a death message, and using "sc_is_player_ally" But it kept returning 0. Is there anyway for 'get_user_attacker'; or something to get the information?
|
Re: Is monster ally?
A SvenCoop Module? O_o Where? O_o
> get_user_attacker returns attackers EntId. The Entity IDs of Players range from 1 to 32. Other Entites Entids range from 33 to 8224. I am not sure if this can only be called on Damage Event or if it is last Attack but if you try to use Damage Event Hook it as Global Event, not as Event sent to a single Player because that is only called when the Player takes Damage. Whatsoever you cannot get the Team or Ally Status with that. Bythe Way it is "is_player_ally" not "sc_is_player_ally" and also Scientistsand Barneys have this reversed. For Example a Scientist with is_player_ally = 1 would be an Enemy. Also check if the Data is a bool or an integer. (A bool makes more sence, as this can just be 0 or 1 / false or true) Or you could try to get the Monsters Relation to you. (Offers much more) This is, for Example, if you shoot a Scientist he runs away from you, if you heal him with the MedKit he acts normal again. |
Re: Is monster ally?
use deathMsg event and read_data
Half Life 1 Events: Registering, Using, and Reading them then you could do something like: Code:
EDIT: just realized I dunno what the svenCoop module is and I have no idea what your talking about so ignore my post as the "moster" isn't a player my code probably will not work |
Re: Is monster ally?
DeathMsg does not work, as SvenCoop is not giving any Message if a Monster or Player has died.
And that is good, because a lot of Stuff dies in that Game. *lol* |
Re: Is monster ally?
Quote:
|
Re: Is monster ally?
ok lol dont know how to help you without further study if I find something I will let you know.
|
| All times are GMT -4. The time now is 04:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.