Raised This Month: $218 Target: $400
 54% 

Showing results 1 to 25 of 500
Search took 0.39 seconds.
Search: Posts Made By: asherkin
Forum: Scripting 02-23-2020, 09:30
Replies: 6
Views: 187
Posted By asherkin
Re: KickClient Message translation

The client doesn't send language information to the server until a little after connection, and if this is for CS:GO the client doesn't send the language information at all - SourceMod has to request...
Forum: Extensions 02-06-2020, 19:32
Replies: 1,226
Views: 687,278
Posted By asherkin
Re: [EXTENSION] Left 4 Downtown (0.4.6) - L4D2 is here and supported

It is nothing to do with being demanding, it is a legal requirement for SourceMod Extensions.
Forum: Coding MM:S Plugins & SM Extensions 02-06-2020, 12:42
Replies: 8
Views: 384
Posted By asherkin
Re: Detour the same function twice

It belongs as part of MM:S, there's just never been a decent library for it (or really a need, detouring was fairly uncommon until quite recently) - Ayuto's DynamicHooks looks like it probably is...
Forum: Coding MM:S Plugins & SM Extensions 02-06-2020, 09:40
Replies: 8
Views: 384
Posted By asherkin
Re: Detour the same function twice

Yes.


That is the primary reason for Metamod:Source existing - it has a centralised list of all virtual function hooks done using SourceHook and can manage the inter-dependencies between plugins.
Forum: Scripting 02-05-2020, 20:20
Replies: 2
Views: 409
Posted By asherkin
Re: Props/Equip on FakeClients (bots)

EquipPlayerWeapon (https://sm.alliedmods.net/new-api/sdktools_functions/EquipPlayerWeapon) takes a the index of a created weapon entity to equip, not a CSWeapon ID.

It is displaying the wrong...
Forum: Coding MM:S Plugins & SM Extensions 02-05-2020, 20:17
Replies: 8
Views: 384
Posted By asherkin
Re: Detour the same function twice

You can wildcard the first 8 (I think) bytes of the signature (but make sure it still matches what you expect) to account for the patched bytes from the previous detour.
Forum: Extensions 02-04-2020, 04:25
Replies: 736
Views: 286,491
Posted By asherkin
Re: [ANY] SteamWorks

Extensions are loaded automatically when a plugin needs them, it won’t be loaded unless you have a plugin that wants to use it.
Forum: Scripting 02-01-2020, 17:10
Replies: 4
Views: 414
Posted By asherkin
Re: [CSS] Loud voice mute

You're not going to find one - you need an extension to decode voice data.
Forum: Scripting 01-31-2020, 17:50
Replies: 3
Views: 511
Posted By asherkin
Re: Optional VPhysics extension

You can use GetFeatureStatus to check if the native is available.
Forum: Source Servers (SRCDS) 01-23-2020, 15:04
Replies: 1
Views: 654
Posted By asherkin
Re: Server Monetization is legal?

Valve do not have an EULA for SRCDS.
Forum: Scripting 01-19-2020, 09:24
Replies: 1
Views: 314
Posted By asherkin
Re: Array of Struct in Struct

This is one of the main reasons they use "enum struct" instead of "struct" - the struct-like syntax is just syntactic sugar a pre-existing feature with many limitations.
Forum: Plugins 01-18-2020, 15:20
Replies: 8
Views: 895
Posted By asherkin
Forum: Scripting 01-14-2020, 12:24
Replies: 7
Views: 946
Posted By asherkin
Re: GetSteamAccountID vs GetClientAuthId

AuthId_Engine is the raw string value returned by the engine, it can be anything (most games use either the Steam2 or Steam3 rendered formats, but it can also be one of those special strings).

The...
Forum: General 01-14-2020, 11:24
Replies: 4
Views: 342
Posted By asherkin
Re: How to get the forward name that crashed from a GDB core?

It is stored as a member variable on CForward, so


p this->m_name


should do the job.
Forum: Coding MM:S Plugins & SM Extensions 01-12-2020, 19:03
Replies: 4
Views: 710
Posted By asherkin
Re: How i can get object pointer?

ISourcePawnEngine2 isn't part of the Extension API and isn't safe to use outside of SourceMod.

What is it from it that you need?
Forum: Scripting 01-05-2020, 13:22
Replies: 5
Views: 415
Posted By asherkin
Re: Need help with SDKCall thingy

They find the same function so have the same end result, but looking it up via a vtable offset requires finding the virtual function table, which requires having a valid pointer to an instance.
...
Forum: Scripting 01-05-2020, 11:48
Replies: 5
Views: 453
Posted By asherkin
Re: [L4D2] Hybrid SP-VScript to fix weapons and medkits for 5+ survivor

The SourceMod version of DoEntFire is AcceptEntityInput (https://sm.alliedmods.net/new-api/sdktools_entinput/AcceptEntityInput), but it is a lot simpler to set the count value directly.

If you...
Forum: Scripting 01-05-2020, 11:32
Replies: 5
Views: 415
Posted By asherkin
Re: Need help with SDKCall thingy

CItem_Adrenaline::CompleteUse is a method of CItem_Adrenaline and thus needs to be called with an instance of CItem_Adrenaline (which is a weapon_adrenaline entity) - the function doesn't actually...
Forum: Coding MM:S Plugins & SM Extensions 12-31-2019, 17:10
Replies: 3
Views: 622
Posted By asherkin
Re: Finding signatures using xref

The Linux binary you're using there probably has the function that string is used in inlined.
Forum: General 12-28-2019, 19:19
Replies: 5
Views: 814
Posted By asherkin
Re: Sourcemod will stop working on Ubuntu. Solutions?

libc and libgcc are basic requirements for all programs so must be provided regardless of what they’ve listed - libmysqlclient shouldn’t be required as we statically link it.
Forum: Scripting 12-24-2019, 09:40
Replies: 3
Views: 390
Posted By asherkin
Re: Inter-plugin memory protection

Not implicitly, but it is important for the extension to check the argument count and avoid reading off the end.
Forum: Scripting 12-24-2019, 06:00
Replies: 3
Views: 390
Posted By asherkin
Re: Inter-plugin memory protection

Each plugin has a separate virtual address space and all access is bounds checked by the VM, so language features should not be able to interact with the memory space of other plugins.

SM APIs...
Forum: Extensions 12-24-2019, 05:54
Replies: 348
Views: 116,718
Posted By asherkin
Re: Accelerator - Crash Reporting That Doesn't Suck

Check that you have the latest version of Accelerator, that looks like an old one.
Forum: Scripting 12-19-2019, 07:31
Replies: 2
Views: 503
Posted By asherkin
Re: GetEntPropVector unable to work with 'vector' netprop that only has 2 elements?

A "vector" type property always has 3 elements, and the ones in m_Collision there are not arrays, just 2 single vector props.

Looking at the SM code, I think the only way to get the error you're...
Forum: Extensions 12-16-2019, 10:30
Replies: 747
Views: 342,894
Posted By asherkin
Re: DHooks (Dynamic Hooks - Dev Preview)

You shouldn't need one, the 1.10+ version should be fine on 1.11.
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 11:47.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode