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

[L4D & L4D2] Multiple Equipments


Post New Thread Reply   
 
Thread Tools Display Modes
WolfGang
BANNED
Join Date: Oct 2010
Old 09-09-2011 , 19:17   Re: [L4D & L4D2] Multiple Equipments
Reply With Quote #11

@panxiaohai ;; When switching weapons (Right Click+Use) a Uzi' appears with only 1 ammo/bullet . . . maybe thats something you can fix
WolfGang is offline
TheJokerx
Junior Member
Join Date: Jul 2011
Old 09-14-2011 , 10:40   Re: [L4D & L4D2] Multiple Equipments
Reply With Quote #12

after mapchange the second primary weapon is replaced by the uzi with 1 ammo
TheJokerx is offline
Marcus101RR
Veteran Member
Join Date: Aug 2009
Location: Tampa, FL
Old 09-14-2011 , 11:03   Re: [L4D & L4D2] Multiple Equipments
Reply With Quote #13

Good god, Koreans, Asians, you name it, they just rage and make great mods like these. 2 Mods you just released have been expected to work like this and You just did it!

Great job man, take a break, you have done so much haha.
Marcus101RR is offline
Send a message via AIM to Marcus101RR Send a message via Skype™ to Marcus101RR
panxiaohai
Senior Member
Join Date: Mar 2010
Old 09-14-2011 , 15:40   Re: [L4D & L4D2] Multiple Equipments
Reply With Quote #14

Quote:
Originally Posted by Marcus101RR View Post
Good god, Koreans, Asians, you name it, they just rage and make great mods like these. 2 Mods you just released have been expected to work like this and You just did it!

Great job man, take a break, you have done so much haha.
Thank you for your praise,I am Chinese。
panxiaohai is offline
Marcus101RR
Veteran Member
Join Date: Aug 2009
Location: Tampa, FL
Old 09-14-2011 , 16:18   Re: [L4D & L4D2] Multiple Equipments
Reply With Quote #15

Quote:
Originally Posted by panxiaohai View Post
Thank you for your praise,I am Chinese。
Heh, good on ya. Anyway, one problem that persists in this is the fact we all end up with Sub Machine Guns at the end of each map? Anyone else confirming?
Marcus101RR is offline
Send a message via AIM to Marcus101RR Send a message via Skype™ to Marcus101RR
Marcus101RR
Veteran Member
Join Date: Aug 2009
Location: Tampa, FL
Old 09-14-2011 , 21:41   Re: [L4D & L4D2] Multiple Equipments
Reply With Quote #16

Temporary Solution to lost guns:
Use this edited version here till he officially fixes it with his code:

Last edited by Marcus101RR; 04-15-2012 at 22:03.
Marcus101RR is offline
Send a message via AIM to Marcus101RR Send a message via Skype™ to Marcus101RR
trollhater
Member
Join Date: Jul 2011
Old 09-16-2011 , 07:05   Re: [L4D & L4D2] Multiple Equipments
Reply With Quote #17

Here are all the errors when you compile this plugin if it helps:

//// l4d_multiple_equipment.sp
// l4d_multiple_equipment.sp(101) : warning 225: unreachable code
// l4d_multiple_equipment.sp(105) : warning 217: loose indentation
// l4d_multiple_equipment.sp(120) : warning 225: unreachable code
// l4d_multiple_equipment.sp(124) : warning 217: loose indentation
// l4d_multiple_equipment.sp(144) : warning 203: symbol is never used: "name"
// l4d_multiple_equipment.sp(59 : warning 204: symbol is assigned a value that
is never used: "set"
// l4d_multiple_equipment.sp(101 : warning 203: symbol is never used: "removea
ttach"
// l4d_multiple_equipment.sp(1064) : warning 203: symbol is never used: "CopyVec
tor"
// l4d_multiple_equipment.sp(9) : warning 203: symbol is never used: "Debug"
// l4d_multiple_equipment.sp(9 -- 1064) : warning 203: symbol is never used: "Dr
opPrimarayWeapon_l4d2"
// l4d_multiple_equipment.sp(1050) : warning 204: symbol is assigned a value tha
t is never used: "GameMode"
// l4d_multiple_equipment.sp(1050 -- 1064) : warning 203: symbol is never used:
"GetInfoFromName"
// l4d_multiple_equipment.sp(1050 -- 1064) : warning 203: symbol is never used:
"GetPrimaryWeaponCount"
// l4d_multiple_equipment.sp(1050 -- 1064) : warning 203: symbol is never used:
"IsSlot3"
// l4d_multiple_equipment.sp(1050 -- 1064) : warning 203: symbol is never used:
"IsSlot4"
// l4d_multiple_equipment.sp(1050 -- 1064) : warning 203: symbol is never used:
"IsSlot5"
// l4d_multiple_equipment.sp(1050 -- 1064) : warning 203: symbol is never used:
"IsValidEntRef"
// l4d_multiple_equipment.sp(1050 -- 1064) : warning 203: symbol is never used:
"IsValidEntRefS"
// l4d_multiple_equipment.sp(1050 -- 1064) : warning 203: symbol is never used:
"IsWeapon"
// l4d_multiple_equipment.sp(43) : warning 203: symbol is never used: "LastWeapo
n"
// l4d_multiple_equipment.sp(34) : warning 203: symbol is never used: "Slot3Name
"
// l4d_multiple_equipment.sp(35) : warning 203: symbol is never used: "Slot4Name
"
// l4d_multiple_equipment.sp(36) : warning 203: symbol is never used: "Slot5Name
"
// l4d_multiple_equipment.sp(50) : warning 203: symbol is never used: "g_gamesta
rt"
// l4d_multiple_equipment.sp(12) : warning 203: symbol is never used: "g_iVeloci
ty"
// l4d_multiple_equipment.sp(11) : warning 203: symbol is never used: "g_sprite"
trollhater is offline
panxiaohai
Senior Member
Join Date: Mar 2010
Old 09-16-2011 , 09:18   Re: [L4D & L4D2] Multiple Equipments
Reply With Quote #18

Quote:
Originally Posted by Marcus101RR View Post
Temporary Solution to lost guns:
Use this edited version here till he officially fixes it with his code:
Thank you , I will study your code.
Can I use your code in my version?
panxiaohai is offline
Marcus101RR
Veteran Member
Join Date: Aug 2009
Location: Tampa, FL
Old 09-16-2011 , 11:57   Re: [L4D & L4D2] Multiple Equipments
Reply With Quote #19

Quote:
Originally Posted by panxiaohai View Post
Thank you , I will study your code.
Can I use your code in my version?
Go ahead if you want to, I would double check everything too. The thing about this is, I removed the reset commands you had in their for each client which is what caused each player to LOSE their second weapon, the only problem is, the player doesn't lose their second weapon after campaign. Also, a small problem after rejoining a game the player is unable to use the second weapon sometimes.

still trying to find out why.

Quote:
@trollhater
These are not errors, they are Warnings, they do not affect the actual code or gameplay of this plugin. They can easily be removed once the plugin is fully stable and working, I'm sure he had something else planned, however, for those unused variables. Assuming you will be able to use Multiple Guns.
EDIT: Alright, this is it, the official fix that I think will solve this problem and still work at the same time. This code has been changed but left intact so that original code can be re-added with two backspaces. I added a LoseGunCycle Check forcing the game to check on roundstart if all players have gone thru a Secondary Gun Cycle reset, the only time the reset will now occur is on Death, and on Bot/Player Take over. Yes, if you take a break, you will lose your secondary gun. Nothing I can do about that really.

Change Log
  • Commented Out ResetAllState(), and ResetClientState() on unnecessary locations. Player_Spawn, Map_Transition, Round_End
  • Added New Variable to Global List: LoseGunCycle.
  • Added LoseGunCycle variable on Round_Start for first time playthrough to ensure secondary gun is available, but not replaced after map transition.

Known Issues/Bugs
  • Secondary Primary Gun will not reset on Campaign Change, or Finishing of Campaign.
  • Secondary Primary Gun will be lost on Bot/Player Replacement (Take a Break).

Last edited by Marcus101RR; 04-15-2012 at 22:03.
Marcus101RR is offline
Send a message via AIM to Marcus101RR Send a message via Skype™ to Marcus101RR
Zbeer
SourceMod Donor
Join Date: Aug 2010
Old 09-19-2011 , 23:10   Re: [L4D & L4D2] Multiple Equipments
Reply With Quote #20

Works perfect Marcus.
Thanks.
Zbeer is offline
Reply


Thread Tools
Display Modes

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 09:59.


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