Raised This Month: $ Target: $400
 0% 

Half-Life teamplay. Setting team scores.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 03-02-2010 , 09:55   Half-Life teamplay. Setting team scores.
Reply With Quote #1

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?


Last edited by Flipper_SPb; 03-03-2010 at 01:40.
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-02-2010 , 10:02   Re: Half-Life teamplay. Setting team scores.
Reply With Quote #2

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..
__________________
Arkshine is offline
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 03-02-2010 , 10:12   Re: Half-Life teamplay. Setting team scores.
Reply With Quote #3

I made C T F plugin for HL. And I looking for the way to show team score

Last edited by Flipper_SPb; 08-29-2010 at 05:51.
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-02-2010 , 10:48   Re: Half-Life teamplay. Setting team scores.
Reply With Quote #4

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.
__________________
Arkshine is offline
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 03-03-2010 , 01:39   Re: Half-Life teamplay. Setting team scores.
Reply With Quote #5

Again Orpheu
I don't know how to use it :-/
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 03-03-2010 , 09:58   Re: Half-Life teamplay. Setting team scores.
Reply With Quote #6

Arkshine, if it's not very difficult, can you give me an example how to use Orpheu for my purpose?
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-03-2010 , 14:31   Re: Half-Life teamplay. Setting team scores.
Reply With Quote #7

I will try later.
__________________
Arkshine is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 03-03-2010 , 14:39   Re: Half-Life teamplay. Setting team scores.
Reply With Quote #8

Quote:
Originally Posted by Flipper_SPb View Post
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.
Doc-Holiday is offline
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 03-25-2010 , 16:19   Re: Half-Life teamplay. Setting team scores.
Reply With Quote #9

Quote:
Originally Posted by Arkshine View Post
I will try later.

So, can you help?
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
Reply


Thread Tools
Display Modes

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 08:36.


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