Raised This Month: $ Target: $400
 0% 

[L4D2] Gun Control


Post New Thread Reply   
 
Thread Tools Display Modes
gilmon
Senior Member
Join Date: Feb 2011
Location: China
Old 05-10-2011 , 06:08   Re: [L4D2] Gun Control
Reply With Quote #321

@ViRaGisTe,
About those code,If change them to other kind of weapon,They won't work,I already tried.
Question here:http://forums.alliedmods.net/showthread.php?t=156654
gilmon is offline
Send a message via MSN to gilmon
ViRaGisTe
Member
Join Date: Feb 2011
Old 05-14-2011 , 04:35   Re: [L4D2] Gun Control
Reply With Quote #322

@HolySnail here's the plugin fixed (why spawning another entity ?!!)... u can change either no drop or switching to secondary weapon. default :

PHP Code:
i_Buttons &= ~IN_ATTACK
//ClientCommand(m60_Client, "slot2") 
until I find a way to use weapon_fire_on_emty event

@gilmon u may have some syntax and structure errors here i'll see it later
Attached Files
File Type: sp Get Plugin or Get Source (prevent_m60_remove.sp - 436 views - 1.1 KB)
ViRaGisTe is offline
HolySnail
Junior Member
Join Date: Feb 2011
Old 05-14-2011 , 05:41   Re: [L4D2] Gun Control
Reply With Quote #323

vira, when i use your plugin after i emptied my m60 clip it just keep shooting tracers (no damage, just a lot of tracers)

is that normal?
HolySnail is offline
xindong
Member
Join Date: Dec 2010
Old 05-16-2011 , 05:56   Re: [L4D2] Gun Control
Reply With Quote #324

AWP and Scout hurt too low. AutoExecConfig inside can add modified?
xindong is offline
ViRaGisTe
Member
Join Date: Feb 2011
Old 05-17-2011 , 04:27   Re: [L4D2] Gun Control
Reply With Quote #325

Quote:
Originally Posted by HolySnail View Post
vira, when i use your plugin after i emptied my m60 clip it just keep shooting tracers (no damage, just a lot of tracers)

is that normal?
yes it's normal like the chainsaw refuelling plugin, the attack button triggers on an empty clip ..
and as I said u can disable this in the .sp and enable the clientcommant slot 2 to switch to secondary weapon, if i t doesnt work use as suggested by theY4Kman
PHP Code:
FakeClientCommand(m60_Client"slot2"

Last edited by ViRaGisTe; 05-17-2011 at 04:30.
ViRaGisTe is offline
MasterMind420
BANNED
Join Date: Nov 2010
Old 05-18-2011 , 09:59   Re: [L4D2] Gun Control
Reply With Quote #326

Hey AtomicStryker, love your plugins. Have a special request for this one, not sure if its possible but here goes... I run a custom server which has an ammo limit for pistols set through cvar, theres no way for the players to reload the ammo in them, which made me think that you were able to setup m60 and grenade launcher to reload at ammo piles, could you possibly add pistols to the mix, would be greatly appreciated...I like realism and infinite ammo is annoying.
MasterMind420 is offline
xioSlayer
Senior Member
Join Date: Apr 2011
Old 07-15-2011 , 12:38   Re: [L4D2] Gun Control
Reply With Quote #327

Quote:
Originally Posted by MasterMind420 View Post
Hey AtomicStryker, love your plugins. Have a special request for this one, not sure if its possible but here goes... I run a custom server which has an ammo limit for pistols set through cvar, theres no way for the players to reload the ammo in them, which made me think that you were able to setup m60 and grenade launcher to reload at ammo piles, could you possibly add pistols to the mix, would be greatly appreciated...I like realism and infinite ammo is annoying.

Ooo yeah i like the idea of that. perhaps give them finite ammo and increase their damage slightly. (imo)

I wish it was possible to remap each pistol to mouse1 and mouse2 so you could fire them independently... and swap melee over to mouse3 (just for pistols, since they can't zoom anyway.)

I imagine thats not possible to change though :/
xioSlayer is offline
BrianGriffin
Senior Member
Join Date: Oct 2008
Old 07-15-2011 , 14:18   Re: [L4D2] Gun Control
Reply With Quote #328

Quote:
Originally Posted by MasterMind420 View Post
Hey AtomicStryker, love your plugins. Have a special request for this one, not sure if its possible but here goes... I run a custom server which has an ammo limit for pistols set through cvar, theres no way for the players to reload the ammo in them, which made me think that you were able to setup m60 and grenade launcher to reload at ammo piles, could you possibly add pistols to the mix, would be greatly appreciated...I like realism and infinite ammo is annoying.
Sounds like the ammo refilling for pistols has to be coded in your seperate plugin wich limits pistol ammo, since unless it provides a include file other plugins can't access its variables.
BrianGriffin is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 07-15-2011 , 18:46   Re: [L4D2] Gun Control
Reply With Quote #329

Coding limited ammo for pistols would be possible, but quite difficult and for what benefit? People would simply grab melee weapons.
AtomicStryker is offline
xioSlayer
Senior Member
Join Date: Apr 2011
Old 07-16-2011 , 02:54   Re: [L4D2] Gun Control
Reply With Quote #330

EDIT: Has anyone been getting client crashes on custom maps like Questionable Ethics and Tour of Terror? on QE level 2, my MP5's were blocks from the map.... as opposed to gun models... and when we'd pick them up clients would crash. Server didn't crash though.

just wondering... I removed weaponunlock.smx and it seems to have fixed it for now. I never had issues with WeaponUnlock at all on default maps as well as most custom maps.

Last edited by xioSlayer; 07-17-2011 at 18:48.
xioSlayer 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:17.


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