Hi everyone - new to this form so please go easy on me if this is obvious, but I have spent ALL day (since 5am:mad:) working on this and have gotten nowhere.
I have made a music system (dll) that is intended to connect to any game. I have successfully plugged it into Wolf:ET but only when it runs as a server. It runs from game events and evolves the music based on whats events are sent out. For example:
//----------g_clients.c------------
void SetWolfSpawnWeapons(...) {
...
IMS_PostEvent(eClassMedic, 0.0,0.0);
...}
//-----------g_cmds.c-------------
void ClientCommand(...) {
...
IMS_PostEvent(eWeaponFired, 1.0,0.0);
...
}
It all works great when I run it as standalone server, but im trying to make a fraps vid of it and I dont want to look like a billy no mates with no other players (no one joins my servers).
What i’d like to do is have one of my PCs running some Bot mod as a pure server. Then my other PC as a client (with working music) connect to that server and have it all work.
When I try to move this code over to any client only sided code (cg_event.c - cg_main.c - cg_playerstate.c) none of them works. Can anyone shed some light on how the whole client-server thing works? I mean - is my local client binary (cgame_mp_x86.dll) even used when I connect to a server? And if so - where would be a good place to insert my event triggers?
Any and all help very much appreciated. I’m going nuts here trying to sort this thing out. Also - i’ll make this music system public if and when it works
Spankey
