Call AddLayeredSequence
Posted: Thu May 11, 2023 8:14 am
Hello! I am trying to blend animations on prop_dynamic_override entity. Trying to call CBaseAnimatingOverlay::AddLayeredSequence:
https://github.com/ValveSoftware/source ... y.cpp#L639
And got an error:
Game CS Source
Please tell me what am i doing wrong?
Syntax: Select all
import memory
from memory import Convention, DataType
server = memory.find_binary('server')
add_layered_sequence = server[b'\x55\x8B\xEC\x51\x53\xFF\x75\x0C'].make_function(
Convention.THISCALL,
[DataType.INT, DataType.INT, DataType.INT],
DataType.INT
)
add_layered_sequence(entity.index, 0, 0)
https://github.com/ValveSoftware/source ... y.cpp#L639
And got an error:
Code: Select all
RuntimeError: Access violation while reading address '112022711'.
Game CS Source
Please tell me what am i doing wrong?