AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Creating smoke on the floor (https://forums.alliedmods.net/showthread.php?t=51899)

Mini_Midget 02-25-2007 23:16

Creating smoke on the floor
 
2 questions.

1. How do I create a smoke entity

2. I want to create the smoke entity on the floor only (everywhere on the floor)

Cheap_Suit 02-25-2007 23:43

Re: Creating smoke on the floor
 
If it's the smoke from a smoke grenade in Counter-Strike 1.6 read on. Else ignore this post.

PHP Code:

playback_event 0id260.0 smoke_originangle0.00.00100

Source: http://forums.alliedmods.net/showthread.php?t=17959

Mini_Midget 02-25-2007 23:48

Re: Creating smoke on the floor
 
So thats how I create a smoke puff for cs? (Yes this is for Counter Strike 1.6)

Any thoughts on the origin of the floor?

Cheap_Suit 02-26-2007 00:07

Re: Creating smoke on the floor
 
Exactly like what I posted. You need the id and the origin though.

Everywhere on the floor?

Mini_Midget 02-26-2007 01:12

Re: Creating smoke on the floor
 
Not sure if this will check everywhere of the floor but it checks the floor at least.
How can I make it so it checks everywhere
PHP Code:

    for (new i=0i<20i++)
    {
        if(
floorpos[i] == 0)
        {
            new 
userlocation[3]
            
get_user_origin(iduserlocation)
            
            
floorpos[i] = userlocation[2// sets the floorpos with the users z posistion
            
            
floorpossets[i][0] = userlocation[0]
            
floorpossets[i][1] = userlocation[1]
            
floorpossets[i][2] = userlocation[2


http://forums.alliedmods.net/showthread.php?p=139416


All times are GMT -4. The time now is 00:35.

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