Raised This Month: $ Target: $400
 0% 

sliencers.....can they be turned off?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
gunsniper
Member
Join Date: Jun 2005
Location: PA - USA
Old 08-20-2005 , 19:02   sliencers.....can they be turned off?
Reply With Quote #1

in one of my mods i have a m203 granade launcher on the m4a1 and was wondering if you could disable the sliencer, because every time u fire a nade it delays the guns fireing?.....any help?
__________________
gunsniper is offline
Send a message via AIM to gunsniper Send a message via Yahoo to gunsniper
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 08-20-2005 , 19:54  
Reply With Quote #2

Try changing this block of code:
Code:
public forward_playerprethink(id) {   if(is_user_alive(id))   {     if (entity_get_int(id, EV_INT_button) & IN_ATTACK2)     {       launch_nade(id)       return FMRES_IGNORED     }   }   return FMRES_IGNORED }
to this:
Code:
public forward_playerprethink(id) {   if(is_user_alive(id))   {     if (entity_get_int(id, EV_INT_button) & IN_ATTACK2)     {       launch_nade(id)       return FMRES_OVERRIDE     }   }   return FMRES_IGNORED }
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 08-20-2005 , 23:26  
Reply With Quote #3

it should be SUPERCEDE.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 08-21-2005 , 01:07  
Reply With Quote #4

Yeah, that.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
gunsniper
Member
Join Date: Jun 2005
Location: PA - USA
Old 08-21-2005 , 17:42   well.......
Reply With Quote #5

well what do i do if that section of code isant in the plugin.......do i just add it?
__________________
gunsniper is offline
Send a message via AIM to gunsniper Send a message via Yahoo to gunsniper
DahVid
Senior Member
Join Date: Jun 2005
Old 08-21-2005 , 17:43  
Reply With Quote #6

Code:
public forward_playerprethink(id) {   if(is_user_alive(id))   {     if (entity_get_int(id, EV_INT_button) & IN_ATTACK2)     {       launch_nade(id)       return FMRES_SUPERCEDE     }   }   return FMRES_IGNORED }

I don't even know where avalanche got this, but replace launch_nade(id) with your nade-launching function name. This should already be in here, well the forward function.
DahVid is offline
gunsniper
Member
Join Date: Jun 2005
Location: PA - USA
Old 08-21-2005 , 18:03  
Reply With Quote #7

hmmmmm...missing the code.......wait got it......well......ok i guess
__________________
gunsniper is offline
Send a message via AIM to gunsniper Send a message via Yahoo to gunsniper
DahVid
Senior Member
Join Date: Jun 2005
Old 08-21-2005 , 18:05  
Reply With Quote #8

Yes there is a public forward_playerprethink or the forward would be fucked.
DahVid is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 08-21-2005 , 18:17  
Reply With Quote #9

DahVid, I got that code from the plugin. What it does is when secondary fire is called not only does it perform the grenade launching code but tells the game not to continue on with the secondary fire code, so it won't silence.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
gunsniper
Member
Join Date: Jun 2005
Location: PA - USA
Old 08-21-2005 , 18:36  
Reply With Quote #10

hey dahvid......ur code dident work....im tryin XxAvalanchexX's.....
__________________
gunsniper is offline
Send a message via AIM to gunsniper Send a message via Yahoo to gunsniper
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 14:25.


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