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

If I set a brick's item to one of Tier Tactical's ammo (eg Ammo, .556), it won't trigger an onItemPickup event when it gets picked up. It works with all other Tier Tactical guns and weapons. Can someone fix it?
Tier Tactical download
Event_onItemPickedup Download
« Last Edit: August 28, 2015, 12:49:34 AM by GMO Ferret »




Quadruple super bump from the grave of the third page
« Last Edit: August 18, 2015, 02:01:25 AM by GMO Ferret »

Quintuple bump combo from the hell that is the second page

seriously guys this would only take a few minutes i'm sure
it's been about half a month since I started the topic


Septuple super combo bump from the second page of forgotten requests

I think i have a solution for you, you can set an event like Onplayertouch....blah blah blah on the brick where the ammo pile is

I think i have a solution for you, you can set an event like Onplayertouch....blah blah blah on the brick where the ammo pile is
No, that wouldn't work for what I want. I need it to work as in when you pick up ammo, not when you touch the brick. That would make it so if you didn't end up picking it up (and touched the side of the brick or something) then it would despawn.

Uber octuple super combo bump back to where those can see the post

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://leopard.hosting/download.php?f=lrkkc&name=Event_onItemPickup.zip
« Last Edit: October 19, 2017, 08:14:58 PM by Pecon »

Bump. Sorta hoping that GMO will at least tell me "yes it works" or whatever.

Bump. Sorta hoping that GMO will at least tell me "yes it works" or whatever.
doesnt even wanna show up