Page 1 of 1
Dispensable items falling straight down (solved)
Posted: Wed Apr 04, 2012 9:57 pm
by Noobasaurus
Sometimes, when I drop my item(such as a health pack, but slightly modified), it drops straight down. Other times, it drops slightly ahead of the person, depending on how fast they are traveling. Why does it vary between these two drop types?
Re: Dispensable items falling straight down
Posted: Wed Apr 04, 2012 10:17 pm
by Marth8880
Could you post your item('s/s') ODF(s) please?
Re: Dispensable items falling straight down
Posted: Thu Apr 05, 2012 10:02 am
by Noobasaurus
smk_weap_inf_claymore_dispenser
com_weap_inf_claymore
com_weap_inf_claymore_dispenser
I don't think you need the explosions.
Re: Dispensable items falling straight down
Posted: Thu Apr 05, 2012 3:13 pm
by Marth8880
Try increasing the velocity in the ordnance ODF if you want it to always fly forward a little bit, which I'm not even sure you want because I'm not sure what you are asking.
Also, this is unrelated, but:
Code: Select all
MaxItems = "9999999999999999999.0"
Having that high of a value is probably seen by the engine as an overflow and the parameter is probably being ignored. If I am correct, simply not having the parameter in the ODF at all will equate to the max number being infinite, as will having a value of "99999". Also again, with that kind of value, you would want to have an integer value instead of decimal value since you can't have a fraction of an item. It shouldn't really matter, but it's still a good habit to get into correcting.
Re: Dispensable items falling straight down
Posted: Thu Apr 05, 2012 10:38 pm
by Noobasaurus
I increased the velocity and it's working pretty well.
Marth8880 wrote:simply not having the parameter in the ODF at all will equate to the max number being infinite
I removed it and now after placing 39 of them I can't place any more. My character does the animation but nothing happens and no claymores explode.
Re: Dispensable items falling straight down
Posted: Thu Apr 05, 2012 10:45 pm
by Marth8880
Ah, that's probably a memory issue or something then, makes sense.
Re: Dispensable items falling straight down
Posted: Fri Apr 06, 2012 10:08 pm
by Fiodis
You could probably resolve it by increasing one of those SetMemoryPoolSize values in the respective LUA. I'm afraid I don't know which one corresponds to a detpack-type item, though; I've never needed to use that pool myself. Maybe UnitController? Sorry I can't be more help.

Re: Dispensable items falling straight down
Posted: Sat Apr 07, 2012 1:19 pm
by Dakota
I had the code for it but i lost it somewhere, theres a topic with it somewhere though, i'll look for it.
heres that topic, i'm glad i posted on it as a bookmark...
http://www.gametoast.com/forums/viewtop ... 27&t=27518
its the entitymine one in the first list. you just set it up like the other entity codes.
SetMemoryPoolSize("EntityMine", 100)
100 being the number that you want to be the mine limit... yet it could be higher or lower.
Re: Dispensable items falling straight down
Posted: Fri Apr 13, 2012 6:23 pm
by Noobasaurus
Thanks everyone, it's working great now!