AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Drug Mod (https://forums.alliedmods.net/showthread.php?t=49887)

MockingBird 01-14-2007 23:22

Drug Mod
 
Hi.
Im thinking of creating a mod that gives the effect of being "drugged". For one of the drugs, I wanted to make a sprite show up on only one persons screen (hallucination). I know i have to precache the sprite and all, but how do I make it show up on just one players screen?

Thanks in advanced

s p l i t 01-14-2007 23:32

Re: Drug Mod
 
http://www.amxmodx.org/funcwiki.php?go=func&id=262

You would just specify the user to display it to as the player flag.

MockingBird 01-14-2007 23:38

Re: Drug Mod
 
Yea i had a look at that, but then i dont get the write_byte and all that stuff

I found an example of a sprite being written, i was wondering if ne one could explain what each thing did.

Code:

message_begin( MSG_BROADCAST,SVC_TEMPENTITY) // Dont get this
write_byte( 5 ) // 5 - Dont get this
write_coord(vec[0]+x1) // I get that this is the origin
write_coord(vec[1]+y1) // I get that this is the origin
write_coord(vec[2]+30) // I get that this is the origin
write_short( smoke ) // Precached sprite - Get this
write_byte( 10 )  // 10 - Dont get this
write_byte( 15 )  // 10 - Dont get this
message_end()

Thanks again!

s p l i t 01-15-2007 00:40

Re: Drug Mod
 
This has been explained and so much information is already out there. Use search, http://forums.alliedmods.net/search.php


All times are GMT -4. The time now is 22:28.

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