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

SetupMuzzle position


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HSFighter
Veteran Member
Join Date: Aug 2007
Location: Flensburg - Germany
Old 07-22-2010 , 07:27   SetupMuzzle position
Reply With Quote #1

Hi all,
i know it's possible to spawn a MuzzleFlash with "TE_SetupMuzzleFlash".
Code:
Syntax: stock TE_SetupMuzzleFlash(const Float:pos[3], const Float:angles[3], Float:Scale, Type) 

Usage:  pos            Position of the muzzle flash.
 angles        Rotation angles of the muzzle flash.
 Scale            Scale of the muzzle flash.
 Type            Muzzle flash type to render (Mod specific).
Is it possible to hook a MuzzleFlash position or angels?
__________________



Sorry for my very bad english
Greetings HSFighter

Last edited by HSFighter; 07-22-2010 at 07:51.
HSFighter is offline
Send a message via ICQ to HSFighter
p3tsin
Senior Member
Join Date: Sep 2005
Location: Finland
Old 07-22-2010 , 11:05   Re: SetupMuzzle position
Reply With Quote #2

Sure. Hook it with AddTempEntHook and then read the parameters one by one as they are written into the tempentity message (take a look at the source of the stock function you pasted).

Out of curiosity, is there any particular reason for getting them?
__________________
plop

Last edited by p3tsin; 07-22-2010 at 11:08.
p3tsin 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 13:08.


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