AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Half-Life teamplay. Setting team scores. (https://forums.alliedmods.net/showthread.php?t=120238)

Flipper_SPb 03-02-2010 09:55

Half-Life teamplay. Setting team scores.
 
Is it possible to set team scores (like in CS) in half-life score table?
In ordinary mode it shows sum of frags and deaths of players of this team.
And I think total frags, deaths and average ping calculates at the client side. But may be I'm wrong?

http://afalink.spb.ru/score.jpg

Arkshine 03-02-2010 10:02

Re: Half-Life teamplay. Setting team scores.
 
Wait, in CS the team score is set when a team wins, then the round ends because of objectives etc. HL is a Deathmatch environnement, meaning you respawn always, there is not round feature, the game ends only when timelimit is up or after x frags done if set. I don't understand how you can ask such thing..

Flipper_SPb 03-02-2010 10:12

Re: Half-Life teamplay. Setting team scores.
 
I made C T F plugin for HL. And I looking for the way to show team score

Arkshine 03-02-2010 10:48

Re: Half-Life teamplay. Setting team scores.
 
Ok. I understand better. Hmm, there would be probably a tricky way using Orpheu. Looking in the HLSDK, team score is saved in team_scores. We can see that team_scores is resetted in CHalfLifeTeamplay::RecountTeams() then all is recounted with the current player's frags. As solution we can't block the function because the first part is useful. Either you need to nop the second part then you could update without fear with your mod, either you hook this function as post then changing the value of team_scores for each team.

Flipper_SPb 03-03-2010 01:39

Re: Half-Life teamplay. Setting team scores.
 
Again Orpheu :)
I don't know how to use it :-/

Flipper_SPb 03-03-2010 09:58

Re: Half-Life teamplay. Setting team scores.
 
Arkshine, if it's not very difficult, can you give me an example how to use Orpheu for my purpose?

Arkshine 03-03-2010 14:31

Re: Half-Life teamplay. Setting team scores.
 
I will try later.

Doc-Holiday 03-03-2010 14:39

Re: Half-Life teamplay. Setting team scores.
 
Quote:

Originally Posted by Flipper_SPb (Post 1106122)
Again Orpheu :)
I don't know how to use it :-/


Thats why i decided to take a new intrest in learning how to code using different languages and what not so i can start to under stand orpheu...


lolz.

Flipper_SPb 03-25-2010 16:19

Re: Half-Life teamplay. Setting team scores.
 
Quote:

Originally Posted by Arkshine (Post 1106558)
I will try later.


So, can you help? :wink:


All times are GMT -4. The time now is 08:36.

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