Skip to content
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 @@ -3,6 +3,13 @@ srv_check = False

[virtual_function]

# _ZNK20CBaseCombatCharacter15IsInFieldOfViewERK6Vector
[[is_in_field_of_view]]
offset_linux = 274
offset_windows = 273
arguments = POINTER
return_type = BOOL

# _ZN20CBaseCombatCharacter18OnTakeDamage_AliveERK15CTakeDamageInfo
[[on_take_damage_alive]]
offset_linux = 299
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ def spawn(self, force=False):
self._spawn()

@wrap_entity_mem_func
def give_named_item(self, item, sub_type=0, econ_item_view=None, unk=False, unk2=NULL):
def give_named_item(
self, item, sub_type=0, econ_item_view=None, unk=False, unk2=NULL):
"""Give the player a named item."""
# TODO: What's the unk argument for?
# unk2 is a Vector (position)? Should do some tests...
Expand Down