Raised This Month: $ Target: $400
 0% 

Bullet_fx


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Thesmokekoke
Member
Join Date: Dec 2011
Old 01-03-2012 , 17:22   Bullet_fx
Reply With Quote #1

I need help modifing plugin Bullet Glow effects! well this plugin give the bullets a special glowing spiral effect. Terrorists bulelts glow Red And CT's bullets glow blue! But after shot on the map are a lot of bullets and they are flying unbelieveable ! Can somebody Modify it just to view bullets ok here is a video!
http://www.youtube.com/watch?v=xblgd...ature=youtu.be
PHP Code:
{
   
/* Plugin generated by AMXX-Studio */
/* credit : Knekters Bulelt Time*/

#include <amxmodx>
#include <engine>

#define PLUGIN "Bullet Effects"
#define VERSION "0.2"
#define AUTHOR "The Specialist"

#define NORMALSPEED   800
#define SNIPERSPEED   1100

new WeaponUsed[33];
new 
AmmoUsed[33];
new 
g_Switch;

public 
plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR);
    
g_Switch register_cvar("bfx_switch","1");
    
register_event("CurWeapon""Weapon_Event","be""1=1""3>0");
    
set_task(30.0,"remove_bullets",0,"",0,"b");    
}
public 
remove_bullets(id)
{
    new 
ent 0;
    do
    {
        
ent find_ent(ent"BulletX");
        
        if(
ent 0
        {
            
remove_entity(ent);
        }
    } while(
ent)
}
public 
Weapon_Event(id)
{    
    if(
get_pcvar_num(g_Switch)==0)
    {
        return 
PLUGIN_HANDLED;
    }else{    
        new 
Weapon read_data(2);
        new 
Clip read_data(3);
    
        if(
WeaponUsed[id] == 0)
        
WeaponUsed[id] = Weapon;
    
        if((
AmmoUsed[id] > Clip) && (WeaponUsed[id] == Weapon) && Weapon != && Weapon != && Weapon != &&  Weapon != 25
        {
            
create_bullet(idWeapon);
        }
        
WeaponUsed[id] = Weapon;
        
AmmoUsed[id] = Clip;
        return 
0;
    }
    return 
PLUGIN_HANDLED;
}
public 
create_bullet(idWeapon)
 {
    new 
Bullets create_entity("info_target");
    if(
Bullets  0
    {
        new 
g_Weapon[33];
        new 
Float:Angle[3];
        new 
Float:Origin[3];
        new 
Float:AimVelocity[3];
        new 
Float:MinBox[3] = {-1.0, -1.0, -1.0};
        new 
Float:MaxBox[3] = {1.01.01.0};
        
entity_get_vector(idEV_VEC_originOrigin);
        
Origin[2] += 12.0;
        
entity_set_string(BulletsEV_SZ_classname"BulletX");
        
entity_set_model(Bullets"models/shell.mdl");
        
get_weaponname(Weapong_Weapon32);
        
entity_set_string(BulletsEV_SZ_targetnameg_Weapon);
        
entity_get_vector(idEV_VEC_v_angleAngle);
        
entity_set_vector(BulletsEV_VEC_minsMinBox);
        
entity_set_vector(BulletsEV_VEC_maxsMaxBox);
        
entity_set_origin(BulletsOrigin);
        
entity_set_vector(BulletsEV_VEC_anglesAngle);
        
entity_set_vector(BulletsEV_VEC_v_angleAngle);
        
entity_set_int(BulletsEV_INT_effects2);
        
entity_set_int(BulletsEV_INT_solid2);
        
entity_set_int(BulletsEV_INT_movetype5);
        
entity_set_edict(BulletsEV_ENT_ownerid);
        
        if(
Weapon != && Weapon != 13 && Weapon != 18 && Weapon != 24)
        {            
            
VelocityByAim(idNORMALSPEEDAimVelocity);
        } else {
            
VelocityByAim(idSNIPERSPEEDAimVelocity);
        }
        
entity_set_vector(BulletsEV_VEC_velocityAimVelocity);
        if( 
get_user_teamid ) == )
        {
            
set_rendering(BulletskRenderFxGlowShell 255,0,0,kRenderNormal,100);
        }else{
            
set_rendering(BulletskRenderFxGlowShell 0,0,255,kRenderNormal,100);
        }
    }
    return 
0;
}
public 
plugin_precache()
{
    
precache_model("models/shell.mdl");

Sorry for my English

Last edited by Thesmokekoke; 01-03-2012 at 19:45.
Thesmokekoke is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-03-2012 , 17:28   Re: Bullet_fx
Reply With Quote #2

Maybe you should not have a completely dark video so we can actually see.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Thesmokekoke
Member
Join Date: Dec 2011
Old 01-03-2012 , 17:33   Re: Bullet_fx
Reply With Quote #3

Quote:
Originally Posted by Exolent[jNr] View Post
Maybe you should not have a completely dark video so we can actually see.
it's not dark video it's a plugin day/night that makes day or night on server depending on time on your pc!
Thesmokekoke is offline
Thesmokekoke
Member
Join Date: Dec 2011
Old 01-03-2012 , 17:38   Re: Bullet_fx
Reply With Quote #4

But if needed i will make a second video without it?
Thesmokekoke is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-03-2012 , 17:56   Re: Bullet_fx
Reply With Quote #5

It would help.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-03-2012 , 18:07   Re: Bullet_fx
Reply With Quote #6

Remove ents on touch.

See http://forums.alliedmods.net/showthread.php?p=517536
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Thesmokekoke
Member
Join Date: Dec 2011
Old 01-03-2012 , 18:18   Re: Bullet_fx
Reply With Quote #7

Quote:
Originally Posted by Exolent[jNr] View Post
It would help.
http://www.youtube.com/watch?v=MViVd...ature=youtu.be
It's lil bit laggy cuz i run 30 aplications
Thesmokekoke is offline
Thesmokekoke
Member
Join Date: Dec 2011
Old 01-03-2012 , 18:20   Re: Bullet_fx
Reply With Quote #8

Didn't get it what means ents !
Sorry for my English!
Thesmokekoke is offline
Thesmokekoke
Member
Join Date: Dec 2011
Old 01-03-2012 , 18:29   Re: Bullet_fx
Reply With Quote #9

i installed the plugin but did'nt helped!
Thesmokekoke is offline
Thesmokekoke
Member
Join Date: Dec 2011
Old 01-03-2012 , 18:30   Re: Bullet_fx
Reply With Quote #10

i only have a bunch of lines that show me where the bullet must bounce but the problem remains!
Thesmokekoke is offline
Reply



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 06:27.


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