#1 28-07-2010 23:38

Deji
From: UK
Registered: 09-11-2008
Posts: 189
Website

Pickups Pool

Okay, lets try this one...

Anyone know the address for the start of the pickup pool?


I assume all pickups types use the same pool with an ID to specify its type... I think the size of each element is 0x20, but that's all I know.

It'd be something helpful to know, but all I really need as of now is to get the model and position of a particular pickup.

Offline

#2 29-07-2010 06:45

Sw[ee]t
From: Нижний Новгород
Registered: 16-02-2009
Posts: 686
Website

Re: Pickups Pool

Have you try to subtract this offset from the pickup? Or get the struct of pickup as object struct?

Offline

#4 30-07-2010 01:02

Deji
From: UK
Registered: 09-11-2008
Posts: 189
Website

Re: Pickups Pool

Thanks.

Is there no way to change a pickup AS a pickup? Or a way to turn the object back into a pickup?


Edit

My code really sucks.

for 0@ = 0x20000 to 0x40000
    if
        09D1:   pickup 0@ created  // returns true...
    then
        0215: destroy_pickup 0@  // crashes (CWorld__remove)
    end
end

Is there an actual working way to get the handle of any pickup?


Damn GTAForums suggestions tongue

Last edited by Deji (30-07-2010 01:27)

Offline

Board footer

Powered by FluxBB