AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D & L4D2] Multiple Equipments (https://forums.alliedmods.net/showthread.php?t=166580)

WolfGang 09-09-2011 19:17

Re: [L4D & L4D2] Multiple Equipments
 
@panxiaohai ;; When switching weapons (Right Click+Use) a Uzi' appears with only 1 ammo/bullet . . . maybe thats something you can fix

TheJokerx 09-14-2011 10:40

Re: [L4D & L4D2] Multiple Equipments
 
after mapchange the second primary weapon is replaced by the uzi with 1 ammo

Marcus101RR 09-14-2011 11:03

Re: [L4D & L4D2] Multiple Equipments
 
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.

panxiaohai 09-14-2011 15:40

Re: [L4D & L4D2] Multiple Equipments
 
Quote:

Originally Posted by Marcus101RR (Post 1555094)
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。

Marcus101RR 09-14-2011 16:18

Re: [L4D & L4D2] Multiple Equipments
 
Quote:

Originally Posted by panxiaohai (Post 1555293)
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 09-14-2011 21:41

Re: [L4D & L4D2] Multiple Equipments
 
Temporary Solution to lost guns:
Use this edited version here till he officially fixes it with his code:

trollhater 09-16-2011 07:05

Re: [L4D & L4D2] Multiple Equipments
 
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(598) : warning 204: symbol is assigned a value that
is never used: "set"
// l4d_multiple_equipment.sp(1018) : 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"

panxiaohai 09-16-2011 09:18

Re: [L4D & L4D2] Multiple Equipments
 
Quote:

Originally Posted by Marcus101RR (Post 1555493)
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?

Marcus101RR 09-16-2011 11:57

Re: [L4D & L4D2] Multiple Equipments
 
Quote:

Originally Posted by panxiaohai (Post 1556382)
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).

Zbeer 09-19-2011 23:10

Re: [L4D & L4D2] Multiple Equipments
 
Works perfect Marcus.
Thanks.


All times are GMT -4. The time now is 20:45.

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