Raised This Month: $51 Target: $400
 12% 

[ H3LP ] p_ model muzzleflash


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 07-21-2018 , 17:06   [ H3LP ] p_ model muzzleflash
Reply With Quote #1

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);
__________________








CrazY. is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 07-22-2018 , 05:55   Re: [ H3LP ] p_ model muzzleflash
Reply With Quote #2

Quote:
Originally Posted by meTaLiCroSS View Post
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
__________________
My plugin:

Last edited by Celena Luna; 07-22-2018 at 05:56.
Celena Luna is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 07-22-2018 , 09:18   Re: [ H3LP ] p_ model muzzleflash
Reply With Quote #3

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.
__________________








CrazY. is offline
DeMNiX
Veteran Member
Join Date: Nov 2011
Location: Russia
Old 07-23-2018 , 03:27   Re: [ H3LP ] p_ model muzzleflash
Reply With Quote #4

Quote:
Originally Posted by Celena Luna View Post
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.
__________________
My channel with test codes
https://www.youtube.com/user/demnix03

Zombie Riot [Scenario & bots-zombie 11.11.2023]
https://youtu.be/8ZZan-aq2sc
DeMNiX is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 07-23-2018 , 04:03   Re: [ H3LP ] p_ model muzzleflash
Reply With Quote #5

Quote:
Originally Posted by DeMNiX View Post
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
__________________
My plugin:
Celena Luna is offline
DeMNiX
Veteran Member
Join Date: Nov 2011
Location: Russia
Old 07-23-2018 , 04:39   Re: [ H3LP ] p_ model muzzleflash
Reply With Quote #6

Quote:
Originally Posted by Celena Luna View Post
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.
__________________
My channel with test codes
https://www.youtube.com/user/demnix03

Zombie Riot [Scenario & bots-zombie 11.11.2023]
https://youtu.be/8ZZan-aq2sc

Last edited by DeMNiX; 07-23-2018 at 04:41.
DeMNiX is offline
Old 07-23-2018, 04:43
Celena Luna
This message has been deleted by Celena Luna.
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 07-24-2018 , 00:54   Re: [ H3LP ] p_ model muzzleflash
Reply With Quote #7

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.
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS 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 18:44.


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