Author Topic: T+T Ammo working with onItemPickedup (One month anniversary)  (Read 1853 times)


same problem

This may or may not have led to you making me fix a bug in JustFileHosting. Try downloading it from the same link now.

The problem is that Tier+Tactical's code is REALLY bad (No offense Bushido, you weren't that great at it 5 years ago). Not only does it have separate packages for each single ammo item, but it packages a more broad function than onItemPickup does and cancels out player::pickup, which means that the onitempickup code is never reached. So either the pickup system for T+T needs to be redone completely in a less terrible manner, or I rewrite onItemPickup to use the same broad function that T+T decided to package so that it can be triggered first. The correct solution is to fix T+T, but I don't have nearly enough time to rewrite that mess. So instead I've added to the onItemPickup package to basically intercept the T+T pickup function and trigger there.

Not tested: http://justfilehosting.space/download.php?f=fkbfy&name=Event_onItemPickup.zip

im not even good at it now

it is extremely crude and by all means should be ported to something more modern, like jack noir's ammo system

Oh shoot, just noticed this. Thanks, Pecon! Testing it out now!

EDIT: It doesn't show up in my events, like trog said
« Last Edit: September 03, 2015, 11:45:47 PM by GMO Ferret »

EDIT: It doesn't show up in my events, like trog said
I can't replicate the issue anymore. Mind posting your console.log?

I can't replicate the issue anymore. Mind posting your console.log?
NEVERMIND IT WORKS
REJOICE