AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [ H3LP ] p_ model muzzleflash (https://forums.alliedmods.net/showthread.php?t=309330)

CrazY. 07-21-2018 17:06

[ H3LP ] p_ model muzzleflash
 
Hello, I've tried to hide p_ model muzzleflash, but isn't working. I'm not sure if my note is wrong, but muzzelflash couldn't be shown because I've blocked the pre attack. Also, I've removed the EF_MUZZLEFLASH from EV_INT_effects of player bitmask, but anyway muzzleflash is being shown.

Code:
entity_set_int(pevOwner, EV_INT_effects, entity_get_int(pevOwner, EV_INT_effects) & ~EF_MUZZLEFLASH);

Celena Luna 07-22-2018 05:55

Re: [ H3LP ] p_ model muzzleflash
 
Quote:

Originally Posted by meTaLiCroSS (Post 1799433)
From world, you can hook PrimaryAttack on each weapon and disable the EF_MUZZLEFLASH bit from the pev_effects bitmask of the weapon's owner.

So you can hook Pre (not post) PrimaryAttack then disable EF_MUZZLEFLASH.
or you can delete attachment 0 from the p_model

CrazY. 07-22-2018 09:18

Re: [ H3LP ] p_ model muzzleflash
 
Quote:

I've blocked in the pre attack.
I did that on pre, not post. If I remove the attachment, it will still exists but in other coordinate, at least this happens with the attachments of v_ model.

DeMNiX 07-23-2018 03:27

Re: [ H3LP ] p_ model muzzleflash
 
Quote:

Originally Posted by Celena Luna (Post 2605411)
or you can delete attachment 0 from the p_model

it wont work. Muzzle will be show near of the hand. For remove muzzle permanently u need to remove event in the sequence of the model.

Celena Luna 07-23-2018 04:03

Re: [ H3LP ] p_ model muzzleflash
 
Quote:

Originally Posted by DeMNiX (Post 2605534)
it wont work. Muzzle will be show near of the hand. For remove muzzle permanently u need to remove event in the sequence of the model.

I don't think p_model have that event.
Only v_ model have

DeMNiX 07-23-2018 04:39

Re: [ H3LP ] p_ model muzzleflash
 
Quote:

Originally Posted by Celena Luna (Post 2605542)
I don't think p_model have that event.
Only v_ model have

can u stop writing bullshit? again

in player model the sequence start event 5004 (muzzleflash)

like a variant u can just use one model for player animations and other player's meshes set as attachments (pev_owner+pev_aiment). So it can help u to avoid remaking over999 models.

meTaLiCroSS 07-24-2018 00:54

Re: [ H3LP ] p_ model muzzleflash
 
EF_MUZZLEFLASH bit is set inside PrimaryAttack. It's certainly obvious you must disable it at post. That will hide muzzleflash from 3rd perspective. From first person perspective, you need to edit model animations, because it's written on v_ model.


All times are GMT -4. The time now is 12:26.

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