
08.07.2019, 02:12
|
|
Новичок
Регистрация: 08.07.2019
Сообщений: 5
С нами:
3606764
Репутация:
3
|
|
Для External
C++:
Код:
VOID
pSTRIGGER
(
)
{
if
(
auto
pGameFramework
=
SSystemGlobalEnvironment
::
Singleton
(
)
->
m_IGame
(
)
->
m_pGameFramework
(
)
)
{
auto
pActorSystem
=
pGameFramework
->
m_pActorSystem
(
)
;
if
(
auto
mActor
=
pActorSystem
->
GetActor
(
pGameFramework
->
GetEntityId
(
)
)
)
{
if
(
auto
GetItem
=
pGameFramework
->
GetIItemSystem
(
)
->
GetItem
(
mActor
->
GetCurrentItemId
(
)
)
)
{
if
(
auto
mWeapon
=
GetItem
->
GetIWeapon
(
)
)
{
while
(
auto
mTriggerId
=
mActor
->
IsTriggerID
(
)
)
{
if
(
mTriggerId
)
{
if
(
auto
pActor
=
pActorSystem
->
GetActor
(
mTriggerId
)
)
{
if
(
!
GetTeam
(
pActor
,
mActor
)
)
continue
;
if
(
!
IsFocusWindow
(
L
"CryENGINE"
,
0
)
)
continue
;
mouse_event
(
MOUSEEVENTF_LEFTDOWN
,
0
,
0
,
0
,
0
)
;
Sleep
(
300
)
;
//Интервал
mouse_event
(
MOUSEEVENTF_LEFTUP
,
0
,
0
,
0
,
0
)
;
}
}
}
}
}
}
}
}
;
class
IActor
{
public
:
auto
IsTriggerID
(
)
{
auto
u
=
pProcess
->
Read
(
(
DWORD
)
this
+
0xC
)
;
u
=
pProcess
->
Read
(
u
+
0x40
)
;
u
=
pProcess
->
Read
(
u
+
0x18
)
;
return
pProcess
->
Read
(
u
+
0x110
)
;
}
}
;
|
|
|