Raised This Month: $51 Target: $400
 12% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 02-03-2011 , 00:53   Re: SMLIB 0.9.6 BETA (289 Function Stocks) | updated 03.02.2011
Reply With Quote #61

and you might want to return the result
FeuerSturm is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 02-03-2011 , 00:54   Re: SMLIB 0.9.6 BETA (289 Function Stocks) | updated 03.02.2011
Reply With Quote #62

Please download from the svn repo, thanks
can't make a new release for every little change.
__________________
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
naris
AlliedModders Donor
Join Date: Dec 2006
Old 02-04-2011 , 13:09   Re: SMLIB 0.9.6 BETA (289 Function Stocks) | updated 03.02.2011
Reply With Quote #63

Quote:
Originally Posted by berni View Post
ok "S" should be "G" commited to svn.
Code:
// clients.inc(632) : error 092: number of arguments does not match definition
You also need to add the size parameter to the call.
naris is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 02-04-2011 , 22:30   Re: SMLIB 0.9.6 BETA (289 Function Stocks) | updated 03.02.2011
Reply With Quote #64

Slap me hard *sigh*

updated.
__________________
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
Mitchell
~lick~
Join Date: Mar 2010
Old 02-05-2011 , 01:18   Re: SMLIB 0.9.6 BETA (289 Function Stocks) | updated 03.02.2011
Reply With Quote #65

Bug, when using third person you have to set the movement type back, other than that its all good!
Mitchell is offline
thresh0ld
Senior Member
Join Date: Sep 2009
Location: Hell
Old 02-05-2011 , 02:06   Re: SMLIB 0.9.6 BETA (289 Function Stocks) | updated 03.02.2011
Reply With Quote #66

berni, I appreciate your efforts on this. Thanks for saving me a lot of time writing code
thresh0ld is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 02-05-2011 , 03:10   Re: SMLIB 0.9.6 BETA (289 Function Stocks) | updated 03.02.2011
Reply With Quote #67

Quote:
Originally Posted by Mitchell View Post
Bug, when using third person you have to set the movement type back, other than that its all good!
Yeah, changing the observermode to OBS_MODE_DEATHCAM normally
removes your movetype, I added an argument now to disallow it changing the movetype, it's on svn.

I will rewrite this stock someday anyway, to make it work for all games, atm this seems really dirty for me.
__________________
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
KawMAN
SourceMod Donor
Join Date: Sep 2007
Location: Cracov
Old 02-05-2011 , 13:41   Re: SMLIB 0.9.6 BETA (289 Function Stocks) | updated 03.02.2011
Reply With Quote #68

Hi,
To Array_Find[Value|String] Please add search start position.

Thanks.
__________________

Last edited by KawMAN; 02-05-2011 at 13:46.
KawMAN is offline
Send a message via ICQ to KawMAN Send a message via Skype™ to KawMAN
Benjamin1995
SourceMod Donor
Join Date: May 2009
Location: Germany
Old 02-07-2011 , 17:51   Re: SMLIB 0.9.6 BETA (289 Function Stocks) | updated 03.02.2011
Reply With Quote #69

I found a bug:

Code:
/**
 * Enables the motion of an entity.
 *
 * @param entity		Entity index.
 * @return				True on success, false otherwise
 */
stock bool:Entity_EnableMotion(entity)
{	
	return AcceptEntityInput(entity, "disablemotion");
}

/**
 * Disables the motion of an entity.
 *
 * @param entity		Entity index.
 * @return 				True on success, false otherwise
 */
stock bool:Entity_DisableMotion(entity)
{
	return AcceptEntityInput(entity, "enablemotion");
}


It's changed.

Regards Benni.
__________________
Benjamin1995 is offline
Send a message via Skype™ to Benjamin1995
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 02-08-2011 , 10:25   Re: SMLIB 0.9.7 BETA (295 Function Stocks) | updated 08.02.2011
Reply With Quote #70

Thanks for the great participation, bug reporting and feature suggestions folks, this really became a powerful library

New smlib update available:
smlib 0.9.7 beta

Compatibility breaks: yes

Changes:

Quote:
  • Added Function String_GetRandom() (A powerful random String generator)
  • Added Constant SIZE_OF_INT
  • Added Parameter "start" to all Array functions
  • Added Functions Entity_GetDistanceOrigin(), Entity_GetDistance()
  • Added Functions Convar_HasFlags(), Convar_AddFlags(), Convar_RemoveFlags()
  • Added File convars.inc
  • Added argument updateMoveType to Function Client_SetObserverMode()
  • Rewrote Function Math_GetRandomInt() (Fixed extremely rare case where the returned value could have been > max), thanks to MatthiasVance
  • Renamed Function Client_HideHud() to Client_SetHideHud()
  • Changed Client_SetThirdPersonMode() to not set the movetype
  • Fixed a bug in the Entity_ Motion functions, thanks to Benjamin1995
  • Fixed Client_GetLastPlaceName(), thanks to FeuerSturm & naris
Download here.
__________________
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
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 11:36.


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