Raised This Month: $ Target: $400
 0% 

Drug Mod


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MockingBird
Member
Join Date: Mar 2005
Old 01-14-2007 , 23:22   Drug Mod
Reply With Quote #1

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
MockingBird is offline
s p l i t
Senior Member
Join Date: May 2006
Location: US, NC
Old 01-14-2007 , 23:32   Re: Drug Mod
Reply With Quote #2

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

You would just specify the user to display it to as the player flag.
s p l i t is offline
Send a message via AIM to s p l i t Send a message via MSN to s p l i t
MockingBird
Member
Join Date: Mar 2005
Old 01-14-2007 , 23:38   Re: Drug Mod
Reply With Quote #3

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!

Last edited by MockingBird; 01-14-2007 at 23:43.
MockingBird is offline
s p l i t
Senior Member
Join Date: May 2006
Location: US, NC
Old 01-15-2007 , 00:40   Re: Drug Mod
Reply With Quote #4

This has been explained and so much information is already out there. Use search, http://forums.alliedmods.net/search.php
s p l i t is offline
Send a message via AIM to s p l i t Send a message via MSN to s p l i t
Reply


Thread Tools
Display Modes

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 22:28.


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