Skip to content

Modified player.get_godmode() for CSGO. #337

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ srv_check = False
player_class = m_iClass
player_state = m_iPlayerState
ragdoll = m_hRagdoll
gungame_immunity = m_bGunGameImmunity

[[eye_angle]]
name = m_angEyeAngles[0]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@ def _set_assists(self, value):
_get_assists, _set_assists,
doc="""The number of assists a player has.""")

@_Player.godmode.getter
def godmode(self):
"""Return whether god mode is enabled.
:rtype: bool
"""
return super().get_godmode() or self.gungame_immunity

def send_convar_value(self, cvar_name, value):
"""Send a convar value.

Expand Down