| Blockland Files > Add-Ons |
| Tier+Tactical 2.1 • UPDATE 9/23/2012 |
| << < (924/1456) > >> |
| Rykuta:
Yes hi, quick question, when exactly did you intend on fixing this? --- Code: ---if(%obj.client.quantity["9MMrounds"] > 35) { %obj.client.quantity["9MMrounds"] -= %obj.AmmoSpent[%obj.currTool]; %obj.toolAmmo[%obj.currTool] = %this.item.maxAmmo; %obj.AmmoSpent[%obj.currTool] = 0; %obj.setImageAmmo(%slot,1); commandToClient(%obj.client,'bottomPrint',"<just:right><font:impact:24><color:fff000>10x18mm <font:impact:34>\c6" @ %obj.toolAmmo[%obj.currTool] @ " / " @ %obj.client.quantity["9MMrounds"] @ "", 1, 2, 3, 4); return; } if(%obj.client.quantity["9MMrounds"] <= 35) { %obj.client.exchangebullets = %obj.client.quantity["9MMrounds"]; %obj.toolAmmo[%obj.currTool] = %obj.client.exchangebullets; %obj.setImageAmmo(%slot,1); %obj.client.quantity["9MMrounds"] = 0; commandToClient(%obj.client,'bottomPrint',"<just:right><font:impact:24><color:fff000>10x18mm <font:impact:34>\c6" @ %obj.toolAmmo[%obj.currTool] @ " / " @ %obj.client.quantity["9MMrounds"] @ "", 1, 2, 3, 4); return; } --- End code --- Because I know for a fact I pmed you about it at least a few weeks before you released your new version. In theory if the player never "Jammed the light button" to reload, this shouldn't cause a single issue. But for those (Like me) who actually take the time to reload when they are finished shooting, you will find that this is very much a broken segment. The issue is that this will set whatever ammount of ammo you have left over to the ammo your gun has. Which means that any ammo you previously had is overwritten, and your left over ammo is automatically set to zero, as apposed to simply refilling what the gun is missing, and taking nothing more. Granted this can be easily fixed with my code here. --- Code: ---if(%obj.client.quantity["9MMrounds"] >= %obj.AmmoSpent[%obj.currTool]) { %obj.client.quantity["9MMrounds"] -= %obj.AmmoSpent[%obj.currTool]; %obj.toolAmmo[%obj.currTool] = %this.item.maxAmmo; %obj.AmmoSpent[%obj.currTool] = 0; %obj.setImageAmmo(%slot,1); commandToClient(%obj.client,'bottomPrint',"<just:right><font:impact:24><color:fff000>10x18mm <font:impact:34>\c6" @ %obj.toolAmmo[%obj.currTool] @ " / " @ %obj.client.quantity["9MMrounds"] @ "", 1, 2, 3, 4); return; } else if(%obj.client.quantity["9MMrounds"] < %obj.AmmoSpent[%obj.currTool]) { %obj.client.exchangebullets = %obj.client.quantity["9MMrounds"]; %obj.toolAmmo[%obj.currTool] += %obj.client.exchangebullets; %obj.setImageAmmo(%slot,1); %obj.client.quantity["9MMrounds"] = 0; commandToClient(%obj.client,'bottomPrint',"<just:right><font:impact:24><color:fff000>10x18mm <font:impact:34>\c6" @ %obj.toolAmmo[%obj.currTool] @ " / " @ %obj.client.quantity["9MMrounds"] @ "", 1, 2, 3, 4); return; } --- End code --- What this code does differently is instead of checking if the ammount of ammo you have left over is greater than the full weapon clip size, it checks if its greator than the ammount of bullets you have actually used. This means that the first if statement is entered until you actually have to zero it out the ammo you have left over and adds that into the guns clip. Solving the issue, as I have found through testing, effectivly. But what puzzles me the most about this is how nobody but me seems to have noticed. If you bother to check, it DOES happen. I suppose nobody has ever lived long enough to run out of ammo. But go figure, it still needs to be fixed. |
| Red Cube:
--- Quote from: danisaac5 on March 10, 2011, 04:32:10 PM ---dual pepperbox --- End quote --- pepperbox sucks. Can't even kill 2 Rot zombie normals with one clip. takes forever to kill just one. |
| Bushido:
so what the issue is that idiots try to reload a gun that's already reloading? why, precisely, would anyone ever do this besides to point out the fact that it's possible --- Quote from: Red Cube on March 10, 2011, 05:38:28 PM ---pepperbox sucks. Can't even kill 2 Rot zombie normals with one clip. takes forever to kill just one. --- End quote --- you can obviously not aim for stuff also it's a sniper's sidearm. use for either close range or picking off people who you just nailed in the head with your rifle |
| Iban:
--- Quote from: Bushido on March 10, 2011, 05:39:42 PM ---so what the issue is that idiots try to reload a gun that's already reloading? why, precisely, would anyone ever do this besides to point out the fact that it's possible --- End quote --- This is a developer excuse called "too lazy to fix." If an issue is found, ever, it's worth fixing. |
| Bushido:
but then where's the result what will i see different in day-to-day activities if i were to fix this issue it's like going out and buying a really fancy shirt just to hide it underneath a jacket nobody sees it and you put a bunch of effort into making sure it's there |
| Navigation |
| Message Index |
| Next page |
| Previous page |