Comments (6)
hi, you can use exec("record <client> <demoname>");
in GSC and make the demoname the player ID
from cod4x_server.
@Iswenzz thanks for the suggestion. How would I implement this so it works?
I tried the following in player.gsx as part of a welcome message block but it appears to have had no effect. No errors logged either.
exec( "record " + self.name + " demo_" + self.clientid + "_" );
Regards,
Matt.
from cod4x_server.
@Iswenzz I've since managed to work out where the variable is set and have created a PR with the very simple change.
from cod4x_server.
You should use the client number instead of name, and the Pr doesn't seem to make sense, it's a steam ID function
from cod4x_server.
Hmm I see your point. This likely needs to check a dvar to check what type of ID is being used or a conditional statement to fallback to codguid if steamid is null. The code at present is hardcoded to only use the steamid in the autorecord filename.
https://github.com/callofduty4x/CoD4x_Server/blob/master/src/sv_client.c#L1212-L1220
SV_SApiSteamIDToString(client->steamid, psti, sizeof(psti));
//It was never intended to make a new demo for each fast_restart.
//SV_SpawnServer() stops the demo and cleans the name which did not happen here which resulted in strange naming bug
if(sv_autodemorecord->boolean && !client->demorecording && (client->netchan.remoteAddress.type == NA_IP || client->netchan.remoteAddress.type == NA_IP6))
{
SV_RecordClient(client, va("demo_%s_", psti));
}
from cod4x_server.
Ye a fallback sounds good
from cod4x_server.
Related Issues (20)
- .ff different from server help HOT 3
- Server received signal: Segmentation fault HOT 2
- Problems with downloads HOT 15
- problem starting bots with my mod HOT 19
- CL_CGameNeedsServerComand:a reliable command was cycled out HOT 4
- [BUG] AmbientPlay is crap since 20.X HOT 12
- problem with compiling cod4x server in linux debian. HOT 5
- [request] The need of stock asset registration skip HOT 2
- Torjan - Can't be false positive? HOT 2
- Impure client detected! Invalid .IWD files referenced! HOT 3
- Error HOT 1
- Implement NAT Hole punching HOT 7
- Find game files (main, zone) from current working directory rather than where the binary is HOT 1
- Multiple Steamid same playerid HOT 7
- Impure client detected HOT 4
- Compile errors HOT 2
- cannot execute: required file not found debug HOT 4
- kill then start server causes "Warning: NET_IP4Socket: bind: Address already in use" HOT 3
- blank
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 cod4x_server.