AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   [CS:S] Question regarding domination/nemesis notifications (https://forums.alliedmods.net/showthread.php?t=299165)

InstantDeath 07-05-2017 12:50

[CS:S] Question regarding domination/nemesis notifications
 
Question: The notification regarding a player is dominating someone or who your nemesis now is, is that done all client side? A quick look in the CS:S game events page leads me to believe this is the case.

KissLick 07-05-2017 13:08

Re: [CS:S] Question regarding domination/nemesis notifications
 
I would try to find something in netprops, this sounds like something that can be there..

psychonic 07-05-2017 13:32

Re: [CS:S] Question regarding domination/nemesis notifications
 
m_bPlayerDominated and m_bPlayerDominatingMe, bool array sendprops.

InstantDeath 07-05-2017 13:59

Re: [CS:S] Question regarding domination/nemesis notifications
 
Quote:

Originally Posted by psychonic (Post 2533577)
m_bPlayerDominated and m_bPlayerDominatingMe, bool array sendprops.

Thanks!

would the m_bPlayerDominatingMe hold the client id or user id for the player that is dominating said player?

psychonic 07-05-2017 14:26

Re: [CS:S] Question regarding domination/nemesis notifications
 
Neither. It holds a true/false for every possible client entity index.

You'd want to set both.

Code:

SetEntProp(dominator, Prop_Send, "m_bPlayerDominated", true, 1, dominatee);
SetEntProp(dominatee, Prop_Send, "m_bPlayerDominatingMe", true, 1, dominator);


InstantDeath 07-05-2017 15:32

Re: [CS:S] Question regarding domination/nemesis notifications
 
so then I would get the victim and attacker from the event player_death, and check those 2 net props to see if the victim is being dominated?

because if it were the other way around, where i can set it, wouldn't that interfere with existing code that already defines whether or not a player is being dominated?


All times are GMT -4. The time now is 07:55.

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