AlliedModders

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

Bruno 12-18-2005 13:03

Smoke
 
Is it possible to completely fill a player with smoke for about 3 seconds?

DarlD 12-19-2005 01:33

maybe if you make like 10 smokes spawn on the guy, and they would'nt be active so dont think so.

unless you use sprites and you make em spawn on the guy.

Charr 12-19-2005 15:24

Re: Smoke
 
Quote:

Originally Posted by Bruno
Is it possible to completely fill a player with smoke for about 3 seconds?

Do you mean completely cover someone with smoke?

Bruno 12-19-2005 16:41

Yeah or at least make it look like the smoke is right in front of him. But it covers a large radius. At least as tall as him too.

Bruno 12-19-2005 20:01

Does anyone know what I am talking about?

MaximusBrood 12-20-2005 10:26

Not really... as it seems :wink:

Charr 12-20-2005 12:17

Actually, I do.
I can help you out later today when I get home

Bruno 12-20-2005 17:58

Finally someone that understands.

Bruno 12-20-2005 22:24

So can you help me?

Charr 12-21-2005 08:18

You need to add a global var
Code:
new smoke
You also have to add this in plugin_precache
Code:
smoke = precache_model("Your sprite dir")
And here is the code for the message. I think it will only play one cycle, so you might have to use a task to keep it going.
Code:
new origin[3] get_user_origin(id,origin,0) message_begin(MSG_ALL,SVC_TEMPENTITY) write_byte(113) // TE_BUBBLES write_coord(origin[0]) write_coord(origin[1]) write_coord(origin[2] - 48) write_coord(origin[1]) write_coord(origin[1]) write_coord(origin[2] + 64) // Edit the second var to edit height write_short(smoke) write_byte( ) // "Count" goes in here, try messing around it (Interger) write_coord( ) // "Speed" goes in here, try messing around it (Interger) message_end()


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

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