PDA

View Full Version : Idea for 'client' side plugin/script -> end stats when de


innerchild
03-04-2005, 18:55
Hello,

I was wondering a long time if this was possible.
If you are killed in counterstrike source you can check your console how many damage you gave to a person or persons or what kind of damage you do to another person as well.

See for example below.
This is generated client sided.

What i was wondering if this was possible.

- Is it possible to show that info in your screen instead of your console ?
Can this be done with a script ? or maybe something else ?

Just wondering....

peez
innerchilD
=============================


[UEA] I n N e R c H i L D killed klus with deagle.
I:D F!X killed [UEA] I n N e R c H i L D with sg552.
Player: [UEA] I n N e R c H i L D - Damage Given
-------------------------
Damage Given to "klus" - 63 in 2 hits
Player: [UEA] I n N e R c H i L D - Damage Taken
-------------------------
Damage Taken from "klus" - 77 in 2 hits
Damage Taken from "I:D F!X" - 38 in 1 hit

XAD
03-04-2005, 19:43
What i was wondering if this was possible.

- Is it possible to show that info in your screen instead of your console ?
Can this be done with a script ? or maybe something else ?
Yes, it's possible... hook the messages sent to from the server (as the info is generated on the server)... BUT the client console stats are incorrect... A better way is to hook some functions in a couple of player related classes in the gamemod and get the real bodyhits and damages...

/X

vancelorgin
03-04-2005, 21:29
If you mean completely client side, then the answer is maybe - it depends on how shared the classes are between client and server. I know the client has access to all players' healths now, so you could ghetto rig a damage dealt mechanism if hurts aren't shared. As for displaying text on the HUD, it's easy as hell for client code but hasn't been done yet from the server in CSS (draws invisibly). Client side plugins, though, are all but synonymous with hacks.