Conversation
|
I made my own branch for build testing with latest sdk here. https://github.com/oylsister/CounterStrikeSharp/actions/runs/17786668246 |
|
I'm currently down with illness so can't verify much of this, is it good to go? |
|
yeah, I think this good to go. |
Co-Authored-By: Alex <6075172+vauff@users.noreply.github.com>
|
Need to find offset for |
|
|
The signature you gave |
"CCSPlayer_ItemServices_DropActivePlayerWeapon": {
"offsets": {
"windows": 21,
"linux": 22
}
}It works fine on Windows. |
oylsister
left a comment
There was a problem hiding this comment.
I couldn't find offset for AddResource so I think implement the method like cs2f, might just better than finding signature every time when something break.
Add 1 usually work |
Co-Authored-By: MADAO <73157477+ismadao@users.noreply.github.com>
|
Getting crashes on this version, so it's not quite ready. No error messages though, just crashing on player join team
|
|
hi |
|
FYI still get a segfault using |
Are we sure this is the culprit? |
Not 100% but I get a segfault when executing Using this command: [ConsoleCommand("spawn_entity", "Spawn an entity")]
[CommandHelper(minArgs: 1, usage: "[entity_name]", whoCanExecute: CommandUsage.SERVER_ONLY)]
public void OnSpawnEntity(CCSPlayerController? player, CommandInfo command)
{
if (command.ArgCount < 2)
{
command.ReplyToCommand("Please provide an entity name");
return;
}
var entityName = command.GetArg(1);
var entity = Utilities.CreateEntityByName<CBaseEntity>(entityName);
if (entity is null)
{
command.ReplyToCommand($"Failed to create entity '{entityName}'");
return;
}
command.ReplyToCommand("Setting entity position...");
entity.Teleport(Vector.Zero, QAngle.Zero, Vector.Zero);
command.ReplyToCommand("Dispatching entity spawn...");
entity.DispatchSpawn();
command.ReplyToCommand($"Entity '{entityName}' spawned");
} |
@stefanx111 mentioned that
GetCSWeaponDataFromKeygot new 5 parameters for this function in discord.https://discord.com/channels/1160907911501991946/1160907912445710479/1417655472512827392