AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Which do i change? (https://forums.alliedmods.net/showthread.php?t=26224)

Tykes 03-29-2006 00:57

Which do i change?
 
Which one do i change to change the radius/distance of the flashbang effect?




Code:

// Item flashbang
public item_flashbang()
{
        new arg[32], origin[3], id
        read_argv(1,arg,31)
        id = str_to_num(arg)
        get_user_origin(id,origin)
        new players[32], num
        get_players(players,num,"ac")
        for(new i = 0; i < num;i++)
        {
                new p_origin[3]
                get_user_origin(players[i],p_origin)

                if(get_distance(origin,p_origin) <= 70.0)
                {
                        message_begin(MSG_ONE,gmsgFade,{0,0,0},players[i])
                        write_short( 1<<15 )
                        write_short( 1<<12 )
                        write_short( 1<<12 )
                        write_byte( 255 )
                        write_byte( 255 )
                        write_byte( 255 )
                        write_byte( 255 )
                        message_end()
                }
        }
        emit_sound(id,CHAN_BODY, "weapons/sfire-inslow.wav", 1.0, ATTN_NORM, 0, PITCH_HIGH)
        return PLUGIN_HANDLED
}


Greenberet 03-29-2006 01:13

line 15:
change "70.0" to an other value

Tykes 03-29-2006 01:16

Thanks.


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

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