Raised This Month: $ Target: $400
 0% 

bullet decal


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tolsty
Senior Member
Join Date: Feb 2008
Location: Latvia
Old 10-02-2009 , 07:23   bullet decal
Reply With Quote #1

how can i remove the bullet decal and the effect when it hits the wall, or prevent the bullet from being fired( i need to return it back too ) ?
__________________
[IMG]http://img2.**************/img2/7173/signfp.jpg[/IMG]

Last edited by tolsty; 10-02-2009 at 10:06.
tolsty is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-02-2009 , 09:00   Re: bullet decal
Reply With Quote #2

I don't know if you can remove a specific decal, but you can if you want remove all decals at once using decal_reset.sc event.
__________________
Arkshine is offline
tolsty
Senior Member
Join Date: Feb 2008
Location: Latvia
Old 10-02-2009 , 09:10   Re: bullet decal
Reply With Quote #3

you didnt get me there a bit, i want to prevent the decal from being shown, or more specific, i want to remove the bullet event, but leave the weapon animation and action
__________________
[IMG]http://img2.**************/img2/7173/signfp.jpg[/IMG]
tolsty is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-02-2009 , 09:43   Re: bullet decal
Reply With Quote #4

Ok. Right now I've 2 ways in my head, either you try to hook TE_WORLDDECAL/TE_DECAL with register_message() and block them ( don't forget to check if it's the right decal index ) either you can block directly UTIL_DecalTrace() or UTIL_GunshotDecalTrace() calls but you would need Jaoquim's module ( Sigscan ) but it's not finished yet, he has to make the hooking stuff. In waiting, try the first.
__________________

Last edited by Arkshine; 10-02-2009 at 09:53.
Arkshine is offline
tolsty
Senior Member
Join Date: Feb 2008
Location: Latvia
Old 10-02-2009 , 10:05   Re: bullet decal
Reply With Quote #5

ok ill probably try TE_DECAL, but im more interested if its possible to prevent the actual bullet from being fired, mby its possible with traceline?
if you have an idea, please show me an example, im a n00b
__________________
[IMG]http://img2.**************/img2/7173/signfp.jpg[/IMG]
tolsty is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-02-2009 , 11:29   Re: bullet decal
Reply With Quote #6

There is not bullet in CS. I'm lost on what you want really.
__________________
Arkshine is offline
tolsty
Senior Member
Join Date: Feb 2008
Location: Latvia
Old 10-02-2009 , 12:11   Re: bullet decal
Reply With Quote #7

My english is not prefect its hard to explain xD.
Ill try again
I want that if you shoot, no bullet is sent(i know that there are now bullets, just effects). If you fire, the weapon model animation plays, and the shooting sound plays, but damage, sparks, ricochet sounds will not show up from the shot.
i just want to find out is there a easy way to block this, otherwise ill try to block these msgs:
TE_GUNSHOT 2
TE_SPARKS 9
TE_GUNSHOTDECAL 109
TE_ARMOR_RICOCHET 111
TE_MULTIGUNSHOT 126
__________________
[IMG]http://img2.**************/img2/7173/signfp.jpg[/IMG]

Last edited by tolsty; 10-02-2009 at 12:15.
tolsty is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-02-2009 , 12:18   Re: bullet decal
Reply With Quote #8

Hook FM_TraceLine, filter, and block the trace. ( redirecting end post, or setting 1.0 as fraction etc.. just test ). There is also fews tutorials which explain FM_TraceLine etc.
__________________
Arkshine 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 22:33.


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