Comments (3)
The second question is how can I detect the TerminateRound from Gamerules and block a specific event like game commencing (Gamestart)? https://github.com/Source2ZE/CS2Fixes/blob/main/src/cs2_sdk/entity/cgamerules.h
You need to hook or detect the TerminateRound event for this.
In sourcemod was OnTerminateRound, then you need to check the reason of termination e.g GameStart, but here I am not sure how things work.
Maybe in this detour (I am just guessing):
Line 68 in 40a7f3d
Or you need to hook the event somewhere else, not fully sure and don't know how to do it.
Just trying to help and gave you some information that I think it can help you a bit.
from cs2fixes.
Future questions can go to our Discord, for faster response.
How to use/how to make a HTTP request When I try to make a request using command:
!http get domain.com
it always prints a message:HTTP request to domain.com failed with status code 0
Is is something from my side or not using something correctly? OS is linux debian 12
Our HTTP API is only built for interacting with REST API's, domain.com
is simply a normal website not implementing REST standards, thus it won't work.
The second question is how can I detect the TerminateRound from Gamerules and block a specific event like game commencing (Gamestart)? https://github.com/Source2ZE/CS2Fixes/blob/main/src/cs2_sdk/entity/cgamerules.h
The sig is already available in gamedata as CGameRules_TerminateRound
, so just declare a detour and define it like the other detours are below, using the function definition from here.
from cs2fixes.
Thank you for the information!
You need to hook or detect the TerminateRound event for this. In sourcemod was OnTerminateRound, then you need to check the reason of termination e.g GameStart, but here I am not sure how things work.
From where I can hook/detect this event OnTerminateRound
I see the server fires TerminateRound when it ends a round in the server console, then probably I need to check if the event is "GameStart" and use return? to block it?
Maybe in this detour (I am just guessing):
Line 68 in 40a7f3d
If I try to detect it in "Detour_CGameRules_Constructor" with if check and then use return, the server hangs (crash/stop)
I think should be done somewhere else.
If someone more familiar with this thing/done this thing, can you give a little help or a direction 🙏
from cs2fixes.
Related Issues (20)
- Make reload_map_list runnable by server HOT 2
- feat: Infinity Ammo HOT 1
- CS2Fixes 1.3 windows server version, crash server HOT 4
- Cannot compile due to google protobuf missing? HOT 2
- Cannot compile due to missing SDK... HOT 1
- CS2Fixes stopped working on the new update
- Adding bots makes them disconnect and connect nonstop. HOT 6
- disableing R8 Revolver in weapons.cfg is not working.
- How do I use the HTTP REST API? HOT 1
- Map voting
- Binds Issues HOT 2
- Commands Caps HOT 1
- Server print Unexpected long frame detected in log per 30 seconds when cs2fixs enable HOT 3
- Keep team score same/Don't reset team score HOT 1
- CounterStrikeSharp silent trigger HOT 2
- Server crashes when working with cskz_metamod HOT 2
- Crash on client after 25 bots + 2 players HOT 1
- Configure failed: No suitable C/C++compiler was found HOT 1
- New Server + maplist enabled. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cs2fixes.