Search found 114 matches

by InvisibleSoldiers
Tue Mar 17, 2020 5:15 pm
Forum: Plugin Development Support
Topic: Convention.STDCALL: 'Convention' object is not callable
Replies: 1
Views: 11322

Convention.STDCALL: 'Convention' object is not callable

I want to make function with the convention, but got the error. func = server_binary[b'\x55\x89\xE5\x83\xEC\x18\x89\x5D\xF8\x8B\x5D\x08\x89\x75\xFC\x8B\x75\x0C\x89\x1C\x24\x89\x74\x24\x04\xE8\x2A\x2A\x2A\x2A\x83\xEC\x04'].make_function( Convention.STDCALL, (DataType.POINTER, ), D...
by InvisibleSoldiers
Mon Mar 02, 2020 2:44 pm
Forum: Plugin Development Support
Topic: Perfomance of trace rays
Replies: 3
Views: 13462

Re: Perfomance of trace rays

No. Player shot, but missed, I want to trace ray the whole circle relative to the shot to find out the accuracy of the shot relative to near enemies. Player shoot with some eye angle (QAngle), I have direction(get_angle_vectors), length(8192) of the shoot, I have start location of shot(eye_location)...
by InvisibleSoldiers
Thu Feb 27, 2020 7:03 pm
Forum: Plugin Development Support
Topic: Perfomance of trace rays
Replies: 3
Views: 13462

Perfomance of trace rays

Can I increase performance of trace rays in SP? I need to do many traces in loop for iterating over whole circle and check if any player there. Sample code: trace_filter = TraceFilterSimple((player, )) game_trace = GameTrace() for i in range(1000): engine_trace.trace_...
by InvisibleSoldiers
Thu Jan 30, 2020 3:55 pm
Forum: Plugin Development Support
Topic: Server crash on @EntityPreHook
Replies: 11
Views: 20448

Re: Server crash on @EntityPreHook

ааа
by InvisibleSoldiers
Wed Jan 29, 2020 10:44 am
Forum: Plugin Development Support
Topic: trigger_push, change push speed
Replies: 4
Views: 12501

Re: trigger_push, change push speed

Your offset is definitely wrong. No way 0x74 is pointing to CTriggerPush::m_flPushSpeed. Hint: from entities.entity import Entity from mathlib import Vector from memory import get_size entity = Entity.find_or_create('trigger_push') print( 'm_flPushSpeed\'s offset is betw...
by InvisibleSoldiers
Wed Jan 29, 2020 7:45 am
Forum: Plugin Development Support
Topic: trigger_push, change push speed
Replies: 4
Views: 12501

Re: trigger_push, change push speed

Sam wrote:Maybe?

Code: Select all

stack_data[0].set_float(0x74, 512.0

http://wiki.sourcepython.com/developing ... .set_float

set_float((Pointer)arg1, (float)arg2[, (Channel)offset=0]) → None
by InvisibleSoldiers
Wed Jan 29, 2020 4:47 am
Forum: Plugin Development Support
Topic: trigger_push, change push speed
Replies: 4
Views: 12501

trigger_push, change push speed

I'm trying to change push speed of trigger_push entity, Fortunately, push direction of the trigger is declared as datamap property, so it easy to change but the pushspeed - no. I found out offset from CBaseTrigger to the variable is 0x74 . But nothing happen when I set myself pushspeed, it remains t...
by InvisibleSoldiers
Sun Jan 26, 2020 11:02 am
Forum: Plugin Development Support
Topic: Problems with hooking.
Replies: 2
Views: 9828

Re: Problems with hooking.

from memory import find_binary from memory import Convention from memory import DataType from memory.hooks import PreHook server_binary = find_binary('server') start_lag_compensation = server_binary[b'\x55\x8B\xEC\x83\xE4\xF8\x83\xEC\x48\x56\x8B\xF1\xC7\x44\x24\x48\x00\x00\x00\x...
by InvisibleSoldiers
Sun Jan 26, 2020 8:24 am
Forum: Plugin Development Support
Topic: Problems with hooking.
Replies: 2
Views: 9828

Problems with hooking.

Tried to hook CLagCompensationManager::StartLagCompensation https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/server/player_lagcompensation.cpp#L328 Problems with it game crash and ESP not present output in the console when the function was called. start_lag_compensation = ser...
by InvisibleSoldiers
Sat Jan 25, 2020 12:42 pm
Forum: Plugin Releases
Topic: [CS:S] JumpStats
Replies: 29
Views: 33126

Re: [CS:S] JumpStats

Rewrote the plugin in a more compact and comfortable form but this plugin is closely interwoven with another which I can't share for now, still maybe someone will be interested. Eyesight changes: 1. Removed HUD print. 2. Removed CGameMovement::Friction hook. 3. Now printing current jump count can be...
by InvisibleSoldiers
Wed Jan 22, 2020 5:54 am
Forum: Plugin Development Support
Topic: Difference in float numbers.
Replies: 5
Views: 13275

Difference in float numbers.

I have this: @PostHook(airaccelerate) def post_hook(stack_data, ret): # CBasePlayer pointer. pointer = stack_data[0].get_pointer(0x4) index = index_from_pointer(pointer) player = playerdict[index] # CMoveData pointer. pointer = stack_data[0].get_pointer(0x8) n...
by InvisibleSoldiers
Tue Jan 21, 2020 3:36 am
Forum: Plugin Development Support
Topic: m_angRotation
Replies: 2
Views: 9152

m_angRotation

What is wrong with standard http://wiki.sourcepython.com/developing ... y.rotation
property?
It works properly when entity.set_network_property_vector('m_angRotation', ...)
by InvisibleSoldiers
Tue Jan 21, 2020 3:34 am
Forum: Plugin Development Support
Topic: m_vecAbsVelocity
Replies: 1
Views: 8746

m_vecAbsVelocity

How to set m_vecAbsVelocity?

Syntax: Select all

entity.set_network_property_vector('m_vecAbsVelocity', ...)

ValueError: Unable to find property 'm_vecAbsVelocity'.
by InvisibleSoldiers
Sun Jan 19, 2020 6:31 am
Forum: Plugin Development Support
Topic: Byte patch
Replies: 2
Views: 6548

Byte patch

Is it possible to bytepatch binary in-memory via Python and if yes what is the best way?
by InvisibleSoldiers
Wed Jan 15, 2020 11:43 pm
Forum: Plugin Development Support
Topic: Get SendProp instance
Replies: 7
Views: 9838

Re: Get SendProp instance

If mapper planned to give >1000 velocity from trigger_push or any entity in 1 tick, that's where it comes, It clamping to 1000. So no good. And what's the difference to the client? Yes, maybe he will get some kind of densynchronization, in principle, so with every booster, trigger_push isn't predict...
by InvisibleSoldiers
Tue Jan 14, 2020 11:36 pm
Forum: Plugin Development Support
Topic: Get SendProp instance
Replies: 7
Views: 9838

Re: Get SendProp instance

That's a little bit contrary to what you wanted to achieve in your initial post. It says you want to stop data table warnings and your code example shows only the part that sends the warning :confused: I sometimes feel you are changing your mind just because L'In20Cible answered your post. It's jus...
by InvisibleSoldiers
Tue Jan 14, 2020 10:28 pm
Forum: Plugin Development Support
Topic: Get SendProp instance
Replies: 7
Views: 9838

Re: Get SendProp instance

http://wiki.sourcepython.com/developing/module_tutorials/listeners.html#onserveroutput No, I really want to change the max available value, because the output is secondary, I don't want to cap velocity to 1000 in 1 tick. In CS:GO there are sv_clamp_unsafe_velocities , but other source engine games ...
by InvisibleSoldiers
Tue Jan 14, 2020 9:11 pm
Forum: Plugin Development Support
Topic: Get SendProp instance
Replies: 7
Views: 9838

Get SendProp instance

How to get SendProp instance of specific property of entity. For example, I want to retrieve m_vecBaseVelocity property to stop the data table warnings: DataTable warning: player: Out-of-range value (2000.000000/1000.000000) in SendPropFloat 'm_vecBaseVelocity', clamping. DataTable w...
by InvisibleSoldiers
Sun Jan 12, 2020 1:59 pm
Forum: Plugin Development Support
Topic: Server crash on @EntityPreHook
Replies: 11
Views: 20448

Re: Server crash on @EntityPreHook

Original plugin uses only it, without any conventions: _hWeapon_ShootPosition = DHookCreate(offset, HookType_Entity, ReturnType_Vector, ThisPointer_CBaseEntity);
by InvisibleSoldiers
Tue Jan 07, 2020 2:54 pm
Forum: Plugin Development Support
Topic: Server crash on @EntityPreHook
Replies: 11
Views: 20448

Re: Server crash on @EntityPreHook

Along with pre and post hooks. Must be using an unusual convention on Linux, or that slot points to a thunk (_ZThn* instead of _ZN* symbol). Try to grab a straight signature to the later, or restructure the convention. Tried CDECL, THISCALL but STDCALL and CUSTOM give the error. TypeError: 'Con...

Go to advanced search