AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] Set bullets sound/models (https://forums.alliedmods.net/showthread.php?t=272236)

Fuck For Fun 09-26-2015 14:26

[HELP] Set bullets sound/models
 
i try to make a Power HE Day with Weapon Model, Bullets (models), Sound

Weapon Model are already added
Code:

RegisterHam( Ham_Item_Deploy, "weapon_deagle",  "FwdPGrenadeDeploy_Post", 1 );
Code:

public  FwdPGrenadeDeploy_Post( iEnt )
{
    if ( g_iCurrentDay != PGRENADES_DAY )
        return 1;
       
    static client;
   
    client = get_pdata_cbase( iEnt, 41, 4 );
   
    if ( !is_user_alive( client ) )
        return 1;
       
    set_pev( client, pev_viewmodel2, g_szPGrenadesViewModel );
    set_pev( client, pev_weaponmodel2, g_szPGrenadesWeaponModel );
   
    return 4;
}

but how can i add a bullet model to see it in game? and sound?

thank to helpers

redivcram 09-26-2015 15:04

Re: bullets sound/models
 
Be more specific...

You want to make bullets fly when grenade is throwed?!

Fuck For Fun 09-26-2015 20:17

Re: bullets sound/models
 
Yeah, i want make a Weapon Shot bullet (show bullet throw) and It harms the people it explodes

Depresie 09-28-2015 06:33

Re: [HELP] Set bullets sound/models
 
you mean something like the rifle from half life? which can launch those explosive bullets by right click?

Shiina.Mashiro 09-29-2015 10:49

Re: [HELP] Set bullets sound/models
 
Create an entity, set its model, and set the velocity from user aiming.
Then hook entity touch, make it explode and you're done.

Fuck For Fun 09-29-2015 14:31

Re: [HELP] Set bullets sound/models
 
Quote:

Originally Posted by Shiina.Mashiro (Post 2348162)
Create an entity, set its model, and set the velocity from user aiming.
Then hook entity touch, make it explode and you're done.

thank very much =]


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

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