Dispensable items falling straight down (solved)
Moderator: Moderators
-
Noobasaurus
- Droid Pilot Assassin

- Posts: 2006
- Joined: Tue Aug 17, 2010 5:56 pm
Dispensable items falling straight down (solved)
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?
Last edited by Noobasaurus on Fri Apr 13, 2012 6:23 pm, edited 1 time in total.
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Dispensable items falling straight down
Could you post your item('s/s') ODF(s) please?
-
Noobasaurus
- Droid Pilot Assassin

- Posts: 2006
- Joined: Tue Aug 17, 2010 5:56 pm
Re: Dispensable items falling straight down
smk_weap_inf_claymore_dispenser
com_weap_inf_claymore
com_weap_inf_claymore_dispenser
I don't think you need the explosions.
Hidden/Spoiler:
Hidden/Spoiler:
Hidden/Spoiler:
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Dispensable items falling straight down
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:
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.
Also, this is unrelated, but:
Code: Select all
MaxItems = "9999999999999999999.0"-
Noobasaurus
- Droid Pilot Assassin

- Posts: 2006
- Joined: Tue Aug 17, 2010 5:56 pm
Re: Dispensable items falling straight down
I increased the velocity and it's working pretty well.
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.Marth8880 wrote:simply not having the parameter in the ODF at all will equate to the max number being infinite
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Dispensable items falling straight down
Ah, that's probably a memory issue or something then, makes sense.
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: Dispensable items falling straight down
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. 
- Dakota
- Field Commander

- Posts: 991
- Joined: Mon Dec 06, 2010 8:21 pm
- Projects :: making random weapon assets
- xbox live or psn: PS3 beats xbox
- Location: at a computer desk floating around in space
Re: Dispensable items falling straight down
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.
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.
-
Noobasaurus
- Droid Pilot Assassin

- Posts: 2006
- Joined: Tue Aug 17, 2010 5:56 pm
Re: Dispensable items falling straight down
Thanks everyone, it's working great now!
