Raised This Month: $ Target: $400
 0% 

Muzzle in rehlds not work.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 12-26-2021 , 17:40   Re: Muzzle in rehlds not work.
Reply With Quote #1

In CPlayer__AddToFullPack_post try to verifiy the "iE" because that is an entity too, maybe it's what you want.

PHP Code:
public CPlayer__AddToFullPack_post(esStateiEiEntiHostiHostFlagsiPlayerpSet)
{
    
server_print("iE: %d; iEnt: %d; g_iEntity: %d"iEiEntg_iEntity);
    if (
iEnt != g_iEntity){ //The problem is different entity.
        
return;
    }
    
    if (
get_bit(g_bitsMuzzleFlashiHost))
    {
        
set_es(esStateES_Framefloat(random_num(02)));
            
        
set_es(esStateES_RenderModekRenderTransAdd);
        
set_es(esStateES_RenderAmt255.0);
        
        
reset_bit(g_bitsMuzzleFlashiHost);
    }
    new 
fgy[32];
    
fgy[iHost] = get_user_weapon(iHost);
    if(
fgy[iHost] == CSW_AK47 || fgy[iHost] == CSW_M4A1 || fgy[iHost] == CSW_AWP || fgy[iHost] == CSW_FAMAS || fgy[iHost] == CSW_M4A1){
    
entity_set_model(g_iEntityspriteok[0]);
    }
    
entity_set_float(g_iEntityEV_FL_scale0.2);
    
entity_set_int(g_iEntityEV_INT_rendermodekRenderTransTexture);
    
entity_set_float(g_iEntityEV_FL_renderamt0.0);
    
set_es(esStateES_SkiniHost);
    
set_es(esStateES_Body1);
    
set_es(esStateES_AimEntiHost);
    
set_es(esStateES_MoveTypeMOVETYPE_FOLLOW);

And post the messages printed out in your console.
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]
Shadows Adi is offline
krisztian2
Junior Member
Join Date: Feb 2019
Old 12-26-2021 , 17:44   Re: Muzzle in rehlds not work.
Reply With Quote #2

Here the results:
Code:
iE: 60; iEnt: 60; g_iEntity: 33
iE: 61; iEnt: 61; g_iEntity: 33
iE: 64; iEnt: 64; g_iEntity: 33
iE: 65; iEnt: 65; g_iEntity: 33
iE: 66; iEnt: 66; g_iEntity: 33
krisztian2 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 11:38.


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