Raised This Month: $51 Target: $400
 12% 

How to modify replicated ConVar on player join?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 03-26-2020 , 10:28   How to modify replicated ConVar on player join?
Reply With Quote #1

Hi,

I need to catch a very early moment when server replicate ConVars to client when he joins the server.

So, I should be able to setup different skyboxes for different clients.

Some code:

This one is work OK. I'm overriding client's ConVar OnGameFrame(), so I ensured it is work.

Spoiler


Now, I need to do the same without OnGameFrame().

Some attempts:
Spoiler

They are not work. Client's ConVar is changed but it was too late and I see custom skybox "sky_day01_09_hdr", defined by OnMapStart.

Thanks for help.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 03-26-2020 at 10:31.
Dragokas is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 03-27-2020 , 11:11   Re: How to modify replicated ConVar on player join?
Reply With Quote #2

According to my tests, OnClientConnect() is too late.

ConVar replication happens some frames earlier.

I need to try my luck with [L4D2] ConnectHook extension.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 03-27-2020 at 11:12.
Dragokas is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode