Raised This Month: $ Target: $400
 0% 

[OB] Change Team Score


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 04-12-2012 , 17:08   Re: [OB] Change Team Score
Reply With Quote #8

I'm not exactly up to speed when it comes to manipulating entities, but wouldn't it just be easier to write an abstraction script that gets the current game's gamerules entity and calls the appropriate input on it?

For example, for TF2, getting the tf_gamerules entity and calling AddBlueTeamScore:

PHP Code:
new entity FindEntityByClassname(-1"tf_gamerules");
SetVariantInt(1);
AcceptEntityInput(entity"AddBlueTeamScore"); 
Edit: Oh, it's possible that other games don't have named entities for gamerules. I just kinda assumed they did. CS:S does, but I can't find any docs on cs_gamerules and its inputs.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 04-12-2012 at 17:31.
Powerlord is offline
 



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 21:47.


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