AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [INC]StockLib updated at 2012/3/17(yy/mm/dd) (https://forums.alliedmods.net/showthread.php?t=122946)

javalia 04-01-2010 01:14

[INC]StockLib updated at 2012/3/17(yy/mm/dd)
 
3 Attachment(s)
new note on 2012 3 16
let me say about this stocklib on here.
well....as u see, all kinds of functions that i have been made for my plugins but
i didnt able to make some nice include file name to put em r on here.
u can find some defines from source engine, functions related to effect/damage/usermsg and more pointless things.
in example, there is endround function for css, but u know, now there is super nice round end function on SM in default.
so lets just use SM`s one. i didnt even marked deprecated functions perfectly, so some deprecated functions will
keep stay on this include file.
wut i am hoping by using this file on my plugin and releasing it is just helping myself`s lazy coding and
i found sometimes this was helped some people.
and well...this is not only one stock set, see the SMlib, its more good in any mean.
except the makeExplosion function and makeDamage2 and makeDamage for now(2012 2 3)
but they maybe can add/improve function at any time.
even sdkhooks has good takedamage function.
but remember, there is at least 1 or more way to do something.
same for sm scripting.
even it will sometimes seems retarded that many guys r making function to do same thing in different ways.. it has some mean.
bye, thanks for reading this and looking my inc file. regardless is this file good or bad,
it is one of most adorable/moeful result of my work/hobby. i hope u can find some useful thing for u on here.

old msgs from here..k
this is..eh....my stocklib.inc file that i made for myself. do u know smlib? this is something like that. well, this file is more small and...has less functions. anyway, i made this file just for myself, so i changed this file at any time i want, from function prototype to function`s spelling. so, by the result of this dirty creating, i was sometimes have to change sp files that uses this inc file to just make it compiled.

anyway, this stocklib`s last update date is too out of date, so i am uploading my newest one, u maybe can able to find usefull things, or maybe can thing this is full of useless gabage. i dont recommend to use few functions on this inc, from they are not working, or deprecated. like, PrintToServerT and LogErrorsT is deprecated. and when u having problem to compile yo existing code that using stocklib, with newest version, and compiler says it cannot find some functions, than check is spelling has been changed in inc file. i know that this is so suckto just upload this inc like this and have no api document at all but.ehm..........hey flaminsarge, this is why i dont wanted to upload this...lol

thanks for asherkin on forum :
he had gave me a new signature of serverdll`s endround fucntion.
but this maybe outdated now. we need update? or not? not sure.-_-

and chat function that supports color codes(it was exist from old version of stocklib but i didnt describe it. but... color.inc is more more good for these fucntion.)
color code for saytext functions are
\x01 is yellow
\x03 is team color of chatter(client)
\x04 is green
\x05 is olive

feel free to post any compiler errors. i heard there was some bug on stocklib, but not sure is that fixed or not.

exvel 04-01-2010 05:44

Re: [INC]StockLib!!!!!!
 
Quote:

csssendhudmsg(client, channel, Float:x, Float:y, r1, g1, b1, a1, r2, g2, b2, a2, effect, Float:fadein, Float:fadeout, Float:holdtime, Float:fxtime, const String:msg[])
<- what is this? HUD message for CS:S?

javalia 04-17-2010 09:23

Re: [INC]StockLib!!!!!! updated at 2010/4/17(yy/mm/dd)
 
yes...hud for css....simple...

exvel 04-17-2010 10:48

Re: [INC]StockLib!!!!!! updated at 2010/4/17(yy/mm/dd)
 
I thought HUD doesn't work in CS:S. Did you test it?

javalia 04-17-2010 10:52

Re: [INC]StockLib!!!!!! updated at 2010/4/17(yy/mm/dd)
 
it works perfectly.
but u must download clientschema.res on ur steam`s css`s resource folder
and restart css
and use that fucntion in correct way
then u can see perfect hud
like hl2mp

exvel 04-17-2010 11:31

Re: [INC]StockLib!!!!!! updated at 2010/4/17(yy/mm/dd)
 
That is sad. I thought clientschema.res can be uploaded automatically from the server and without restarting the game.

noodleboy347 04-17-2010 13:30

Re: [INC]StockLib!!!!!! updated at 2010/4/17(yy/mm/dd)
 
Could you explain the damage types for MakeDamage and shake flags for sendshakemsg?

Also what does sendfademsg do, it doesn't seem to do anything for me (is it not for TF2?)?

javalia 04-27-2010 00:02

Re: [INC]StockLib!!!!!! updated at 2010/4/17(yy/mm/dd)
 
well, damage type and flag
for send***msg`s are all defined on
sourceengine.
and u can see all of things on my incfile.
well..fademsg will make fade effect with color u want and time u want,
and shakeeffect? well..it will make your screen to shake!!!like earth shake!!!

javalia 05-25-2010 09:34

Re: [INC]StockLib!!!!!! updated at 2010/5/25(yy/mm/dd)
 
updated littlebit

Sammy-ROCK! 05-25-2010 21:58

Re: [INC]StockLib!!!!!! updated at 2010/5/25(yy/mm/dd)
 
If a client is InGame obviously he's connected...

javalia 06-25-2010 06:17

Re: [INC]StockLib!!!!!! updated at 2010/5/25(yy/mm/dd)
 
Quote:

Originally Posted by Sammy-ROCK! (Post 1191305)
If a client is InGame obviously he's connected...

thanks. i have updated my code.

javalia 05-22-2011 05:15

Re: [INC]StockLib!!!!!! updated at 2011/5/22(yy/mm/dd)
 
updated but...isnt SMlib good than this? k

javalia 03-16-2012 06:44

Re: [INC]StockLib updated at 2012/3/16(yy/mm/dd)
 
well, updated again...
makeExplosion function is now more powerful.
heheh.

sodafr 03-20-2012 11:46

Re: [INC]StockLib!!!!!! updated at 2010/4/17(yy/mm/dd)
 
Quote:

Originally Posted by javalia (Post 1152899)
yes...hud for css....simple...

Hello, I tried to use sendHudMsg without success
I have copied clientschema.res (from Counter-Strike Source Shared.gcf) to cstrike/materials/resources and had a look... but... nothing. I tried this
PHP Code:

public OnPluginStart()
{
    
RegConsoleCmd("hudtest"hudTest);
}
public 
Action:hudTest(clientargs)
{
    if(
client 1)
        return 
Plugin_Continue;
    else
        
sendHudMsg(client6, -1, -12551200255255120022500.11000.010.04.0"THIS IS A TEST");
 
    return 
Plugin_Handled;


Can you, please, provide a simple example ?

Thank you,

soda


All times are GMT -4. The time now is 18:15.

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