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

[L4D2] Draw survival-timer on client's screen


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dr. Greg House
Professional Troll,
Part-Time Asshole
Join Date: Jun 2010
Old 08-13-2011 , 18:49   [L4D2] Draw survival-timer on client's screen
Reply With Quote #1

Hi guys!

http://h5.abload.de/img/timergjxs.png

I was wondering if it is possible to send this timer-panel to a client and:
-Start/Stop/Pause it
-Set the value for the time record

Maybe this is possible by sending entprops?

Please don't hesitate to ask if there is further information needed.

Thanks in advance!
Cyba_Mephisto
Dr. Greg House is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 08-13-2011 , 20:28   Re: [L4D2] Draw survival-timer on client's screen
Reply With Quote #2

Definitely not entprops. Looking at the server binary, it's a pointer to a float value in server memory.

The functions are not virtual, meaning you'd have to actually get Signatures for them and use an Extension for calling.

And the client probably only displays the timer overlay in the right gamemode anyways.
AtomicStryker is offline
Dr. Greg House
Professional Troll,
Part-Time Asshole
Join Date: Jun 2010
Old 08-13-2011 , 21:09   Re: [L4D2] Draw survival-timer on client's screen
Reply With Quote #3

So no chance?
Because I wanted to have a clock running for a plugin and I've already tried the hints without success though:
https://forums.alliedmods.net/showthread.php?t=160539
Dr. Greg House is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 08-14-2011 , 06:36   Re: [L4D2] Draw survival-timer on client's screen
Reply With Quote #4

PrintCenterText does not have those issues in the L4D engine. Its engine specific.

It's small and hard to read though, especially on higher resolution players.
AtomicStryker is offline
Dr. Greg House
Professional Troll,
Part-Time Asshole
Join Date: Jun 2010
Old 08-14-2011 , 10:04   Re: [L4D2] Draw survival-timer on client's screen
Reply With Quote #5

tbh it's even barely readable on 1280x1024.
There's no way around this?
Dr. Greg House 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 22:49.


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