AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Determining the attacker / victim in natural selection (https://forums.alliedmods.net/showthread.php?t=5664)

Timmi the savage 09-08-2004 16:48

Determining the attacker / victim in natural selection
 
Hi, I have a problem i cannot figure out with ns.

how do i get the victim of an attack. Plz help.
Thanks.

--edit : Damage event registers

------AMXmodX 0.16 and 0.20-tp4
Metamod 1.17.2.p10 and 1.17.2.0 both have the same results.

HLDS - win32

Timmi the savage 09-08-2004 16:48

But not before the victim is dead. Just when the victim is damaged.

im pretty sure its an event. Help please. Also where do i find the event ?

i have
Code:
register_event("Damage", "damage_event", "b", "2!0")

edit-- i have also tried

Code:
register_event("Damage", "damage_event", "b")

Timmi the savage 09-09-2004 13:30

hmmm. anyone? I cant seem to tie a function to the victim in a damage event?

Timmi the savage 09-09-2004 18:37

now that im looking into it more i think it has something to do with

get_user_attacker ?? -didnt work

entity_get_edict EV_ENT_dmg_inflictor.?? didnt work although im not quite sure on its function.

I dont think it works in NS, can anyone help?

Timmi the savage 09-10-2004 04:58

Also i have a new way of respawning. But this whole plugin hinges on the ability to determine the attacker/victim.

Curently trying a method using get_user_aiming, i'll reply if it works.
UNTIL then any HELP, please, would be greatly appreciated.

Timmi the savage 09-10-2004 05:02

BTW i had monster_mm running but couldnt damage monsters. !! if thats any help on figuring it out :?

Votorx 09-10-2004 08:16

Fake Meta! Bet there's something in there you could find.

Timmi the savage 09-10-2004 14:38

Thanks votorx, Im sure of it. That of course is my next best option. Im glad the dev team added ithis. I have had a couple goes at it. But im shooting in the dark with fakemeta. Anyone have any idea's using fake meta.

Timmi the savage 09-11-2004 12:47

i dont think its possible

Timmi the savage 09-25-2004 19:38

Well i did it. Using user_get_aiming.
But it still has to be called by the attacker. I'll figure out the event and link them. When i do i'll post it.


All times are GMT -4. The time now is 17:24.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.