Explain how
Could someone please explain how to use these and show an example please?
native message_begin( dest, msg_type, origin[3]={0,0,0},player=0); native message_end(); native write_byte( x ); native write_char( x ); native write_short( x ); native write_long( x ); native write_entity( x ); native write_angle( x ); native write_coord( x ); native write_string( x[] ) |
hmm maybe if you could just explain byte_short because I want to know how to make a sprite play longer than 1 second.
|
loop the call... (ie: set_task( 1.0, "draw_sprite")... )
|
Code:
There is a function you can put into a plugin...do something like Code:
To get your users origin, and pass it to the function....usually like... Code:
Also, heres a link to some stuff so you can tell what your doing... http://0x00.org/random/Halflife/SDK/...engine/const.h The first write_byte is the number of the effect...you'll see numbers beside some constants in the link I gave you...those match up. |
This Really Helped!. Thanks I was missing the byte Life. I will keep that info as future Reference.
Also I considered looping it but I thought it would loop forever and I dont want that :S |
Code:
write_byte( 5 ) |
As far as I know, a sprite can only last 1 second on screen, that's why I said loop it.. if you're worried about it looping forever, then set a global variable or something to tell it when to stop..
|
I will look into that. Cheers
|
Yea, some of those properties start getting really finniky.
If they aren't right, etc then they start crashing the server, or all sorts of things. I had one, where I had the values incorrect, and it actually kicked every player on the server without any kind of notice, any messages, any crashes or anything...it was like....play play play play play...WTF...I'm back @ cs startup screen? -- and it was literally that instant...and I dont know how. haha... |
| All times are GMT -4. The time now is 07:02. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.