AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   SVC_* (https://forums.alliedmods.net/showthread.php?t=22619)

BetaX 12-31-2005 03:21

SVC_*
 
Well guys, I found the SVC_*s... in util.h in the Valve SDK...

But they don't tell me very much on how to use them.

This is where you come in. :D

Please explain them.

Here's a list of them:

Code:

#define SVC_TEMPENTITY                23
#define SVC_INTERMISSION        30
#define SVC_CDTRACK                        32
#define SVC_WEAPONANIM                35
#define SVC_ROOMTYPE                37

In the words of a true noob, HLP I PLZ :'(

Basic-Master 12-31-2005 22:48

Re: SVC_*
 
hrm I actually can only explain SVC_TEMPENTITY and SVC_WEAPONANIM. I guess you can use SVC_CDTRACK to tell the client that it should play a cd track but don't ask me how you could use it... Anyway, SVC_TEMPENTITY creates a temporary entity, that are mostly fx effects like explosions or sprites. You can find a list of all SVC_TEMPENTITY messages here. SVC_WEAPONANIM tells the client to play a weapon animation but it often doesn't work with already-created weapons. Anyway, you can use the SVC_WEAPONANIM message in this way:
Code:
message_begin(MSG_ONE, SVC_WEAPONANIM, {0, 0, 0}, id) write_byte(anim) // the weapon animation write_byte(pev(id, pev_body)) // the body, you can use entity_get_int(id, EV_INT_body) instead if you don't want to use the fakemeta module.. message_end()

BetaX 01-01-2006 03:05

Thank you.

<3

Any other info. on any of the other ones?

VEN 01-01-2006 06:04

You can use SVC_INTERMISSION to create intermission like at the end of map.

Code:
// taken from amx_map code message_begin(MSG_ALL, SVC_INTERMISSION) message_end()


All times are GMT -4. The time now is 16:09.

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