File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed
data/source-python/entities/csgo
packages/source-python/entities/engines/csgo Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 1+ srv_check = False
2+
3+
4+ [function]
5+
6+ [[set_attacker]]
7+ identifier_windows = 55 8B EC 53 8B 5D 08 56 57 8B F9 53
8+ identifier_linux = 55 89 E5 57 56 53 83 EC 2C C7 45 DC 00 00 00 00 8B 5D 08
9+ arguments = POINTER
10+
11+
112[property]
213
314 bounces = m_nBounces
Original file line number Diff line number Diff line change 66# >> IMPORTS
77# =============================================================================
88# Source.Python
9- from entities import BaseEntityGenerator
9+ # Entities
1010from . import Entity as _Entity
11+ from entities import BaseEntityGenerator
12+ from entities .helpers import pointer_from_inthandle
13+ # Weapons
1114from weapons .manager import weapon_manager
1215
1316
@@ -68,3 +71,8 @@ def find(cls, classname):
6871 ) in (index , 0 ):
6972 return cls (entity .index )
7073 return super ().find (classname )
74+
75+ thrower = property (
76+ lambda self : self .__getattr__ ('thrower' ),
77+ lambda self , inthandle : self .set_attacker (pointer_from_inthandle (inthandle ))
78+ )
You can’t perform that action at this time.
0 commit comments