Raised This Month: $32 Target: $400
 8% 

SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011


Post New Thread Reply   
 
Thread Tools Display Modes
Ellie
Senior Member
Join Date: Apr 2013
Old 04-01-2014 , 01:27   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #341

@friagram
I use smlib in multiple games, not just TF2. And some of those games don't support the hex codes Who do I have to bribe at Valve for them to add it

@berni
I see, so orange could have been removed at one point. That makes sense. But I can't get gray working in TF2 at all. Not that I'd want it this way, but curious as to why isn't the gray color this: "ChatColorSubjectType:1". Isn't the spec team number 1 in all games?

And looking forward to the new version. I can help with the named RGB colors if you want.


@abrandnewday
I should have mentioned I already tried morecolors.inc previously, and even though it does work, it has issues with translation files. Also, not every games supports it. Would be awesome if they did.
Ellie is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 04-02-2014 , 10:04   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #342

Quote:
Originally Posted by Ellie View Post
@berni
I see, so orange could have been removed at one point. That makes sense. But I can't get gray working in TF2 at all. Not that I'd want it this way, but curious as to why isn't the gray color this: "ChatColorSubjectType:1". Isn't the spec team number 1 in all games?
I think I used the number -1, because it sets the color gray independent of if there are players in spectators team I think (should put more code comments ).

Quote:
Originally Posted by Ellie View Post
And looking forward to the new version. I can help with the named RGB colors if you want.
That would be great! Feel free to fork the master branch and submit pull requests. (Contribution rules)
See the todo list in this issue.
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline
zipcore
Veteran Member
Join Date: Mar 2010
Location: m_flZipcore
Old 05-15-2014 , 12:46   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #343

You should add this

PHP Code:
stock Math_GetCircuitPos(Float:center[3], Float:radiusFloat:angleFloat:output[3], bool:rotate falsebool:horizontal false)
{
    new 
Float:sin=Sine(DegToRad(angle))*radius;
    new 
Float:cos=Cosine(DegToRad(angle))*radius;
    
    if(
horizontal){
        
output[0] = center[0]+sin;
        
output[1] = center[1]+cos;
        
output[2] = center[2];
    }
    else{
        if(
rotate){
            
output[0] = center[0]+sin;
            
output[1] = center[1];
            
output[2] = center[2]+cos;
        }
        else{
            
output[0] = center[0];
            
output[1] = center[1]+sin;
            
output[2] = center[2]+cos;
        }
    }

__________________

Last edited by zipcore; 05-16-2014 at 08:31.
zipcore is offline
CoolJosh3k
AlliedModders Donor
Join Date: Mar 2010
Old 05-17-2014 , 12:23   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #344

Probably way out of the loop here, but...

Any chance for a change to allow for the new(back then) May10_2012 tf2 update colours?

I noticed that with Simple Chat Colors plugin, I cannot even use Orange on TF2 by default. Being able to use all those 16^3 colours would be wonderful, not to mention text transparency too.
CoolJosh3k is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 05-18-2014 , 00:21   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #345

Quote:
Originally Posted by CoolJosh3k View Post
Probably way out of the loop here, but...

Any chance for a change to allow for the new(back then) May10_2012 tf2 update colours?

I noticed that with Simple Chat Colors plugin, I cannot even use Orange on TF2 by default. Being able to use all those 16^3 colours would be wonderful, not to mention text transparency too.
To be honest, when dealing with colors I've found it's better to use colors.inc (for all games) or morecolors.inc (HL2:DM, DoD:S, CS:S, or TF2).

morecolors supports the kinds of colors you mentioned.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 05-18-2014 at 00:21.
Powerlord is offline
Bubka3
Sir Buzz Killington, Esq.
Join Date: Jan 2010
Location: New York, NY
Old 06-21-2014 , 11:49   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #346

When your using Client_GiveWeaponAndAmmo is possible to have the ammo given "in"? If give someone 500 ammo with that native, they still need to reload before they fire.
Bubka3 is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 06-21-2014 , 16:13   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #347

Quote:
Originally Posted by Bubka3 View Post
When your using Client_GiveWeaponAndAmmo is possible to have the ammo given "in"? If give someone 500 ammo with that native, they still need to reload before they fire.
Client_SetWeaponClipAmmo
bl4nk is offline
Bubka3
Sir Buzz Killington, Esq.
Join Date: Jan 2010
Location: New York, NY
Old 06-23-2014 , 01:05   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #348

Quote:
Originally Posted by bl4nk View Post
Client_SetWeaponClipAmmo
I don't understand this. What I do understand is I'd have to figure out the default value for each gun which would be annoying at best.
Bubka3 is offline
psychonic

BAFFLED
Join Date: May 2008
Old 06-23-2014 , 07:38   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #349

Quote:
Originally Posted by Bubka3 View Post
I don't understand this. What I do understand is I'd have to figure out the default value for each gun which would be annoying at best.
Or do an SDKCall to GetMaxClip1 on the weapon.
psychonic is offline
Ermert1992
Member
Join Date: Jan 2012
Location: Germany
Old 07-06-2014 , 04:15   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #350

I've test it. It's great. Really like that. Good job!
Ermert1992 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 06:34.


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