sv_banned_versions 170312,170399
to auto kick the bots. sv_banned_versions 170312,170399
to auto kick the bots. 170313
The bot joined an empty server, oh wow, I've never seen that.
2023-11-06 16:57:26 I server: player has entered the game. ClientID=0 addr=57.129.1.215:62354
2023-11-06 16:57:26 I ddnet: cid=0 version=170313
2023-11-06 16:57:26 I chat: *** ♟ | SapphireEyes entered and joined the game
2023-11-06 16:57:34 I chat: 0:-2:SapphireEyes: • The strongest cheat client in the game is already available Fluxus we have everything you want! -> discord.gg/GcBsY fUd9S
Oh crap, discord is doing a link preview despite of no http
. I added a space to break the link. (edited)170313
The bot joined an empty server, oh wow, I've never seen that.
2023-11-06 16:57:26 I server: player has entered the game. ClientID=0 addr=57.129.1.215:62354
2023-11-06 16:57:26 I ddnet: cid=0 version=170313
2023-11-06 16:57:26 I chat: *** ♟ | SapphireEyes entered and joined the game
2023-11-06 16:57:34 I chat: 0:-2:SapphireEyes: • The strongest cheat client in the game is already available Fluxus we have everything you want! -> discord.gg/GcBsY fUd9S
Oh crap, discord is doing a link preview despite of no http
. I added a space to break the link. (edited)Force
* Strength
you could probably do * 5.0fForce
Force
,
(vec2(0.f, -1.0f) + Temp) * Strength
tune hammer_strength 5
tune hammer_strength 5
vec2
is a vector in 2D, for example vec2(0.f, -1.0f)
points straight up, as the X component is zero (edited)vec2
is a vector in 2D, for example vec2(0.f, -1.0f)
points straight up, as the X component is zero (edited)0.f
to something else, like 2.0f
or -2.0f
and see what it changesvec2(0.f, -1.0f)
points up. If you change it to vec2(2.f, -1.0f)
then it should apply twice as much force in X direction as in Y directionvec2(0.f, -1.0f)
points up. If you change it to vec2(2.f, -1.0f)
then it should apply twice as much force in X direction as in Y direction Dir.x
. You should probably learn some C++ to understand this. Or copy the function into ChatGPT and tell it what you want to have changed.Dir.x
. You should probably learn some C++ to understand this. Or copy the function into ChatGPT and tell it what you want to have changed. #include <game/client/gameclient.h>
is wont work (edited)GameClient()->m_Afk
SetGameInfo
function, that would contain the m_Afk
bool. Just remember you also have to check whenever the m_Afk
bool has changed, and then call the function again. IGameClient *pGameClient = Kernel()->RequestInterface<IGameClient>();
if(pGameClient) {
...
pGameClient->m_aClients[pGameClient->m_Snap.m_LocalClientID]->m_Afk;
...
}
(edited) IGameClient *pGameClient = Kernel()->RequestInterface<IGameClient>();
if(pGameClient) {
...
pGameClient->m_aClients[pGameClient->m_Snap.m_LocalClientID]->m_Afk;
...
}
(edited)m_LocalClientID
can be negative in the demo player, so you also want to check for m_LocalClientID >= 0
or you might get a crash in the demo playerCDiscord::SetGameInfo
is only called when online so it should be safe (edited) IGameClient *pGameClient = Kernel()->RequestInterface<IGameClient>();
if(pGameClient) {
...
pGameClient->m_aClients[pGameClient->m_Snap.m_LocalClientID]->m_Afk;
...
}
(edited)// in CDiscord
IGameClient *m_pGameClient = nullptr;
...
// in SetGameInfo
if(!m_pGameClient) m_pGameClient = Kernel()->RequestInterface<IGameClient>();
m_pActivityManager->update_activity(m_pActivityManager, &Activity, 0, 0);
if(m_pGameClient && m_pGameClient->m_Snap.m_LocalClientID >= 0 && m_pGameClient->m_aClients[pGameClient->m_Snap.m_LocalClientID]->m_Afk) {
str_copy(Activity.assets.small_image, "idle", sizeof(Activity.assets.small_image));
str_copy(Activity.assets.small_text, "Idling", sizeof(Activity.assets.small_text));
} else {
str_copy(Activity.assets.small_image, "greenline", sizeof(Activity.assets.small_image));
str_copy(Activity.assets.small_text, "In Game", sizeof(Activity.assets.small_text));
}
(edited)No member named 'm_Snap' in 'IGameClient'
CGameClient *m_pGameClient = nullptr;
then in SetGameInfo, do this instead
m_pGameClient = static_cast<CGameClient *>(Kernel()->RequestInterface<IGameClient>());