PDA

View Full Version : .ded question


nickel7000
February 4th, 2005, 12:56 AM
sorry if theres another board i should be posting this on, but i didnt know where.

im wondering if there is anyway to stop an object from falling when it gets to its death state. for example: the object is in the air, you kill it, and it remains at its current position. is this possible?

DaniJ
February 4th, 2005, 10:41 AM
Yes. Take for example the cacodemon. Open Objects.DED and then create a copy of the various definitions used for the cacodemon.

Now find the Thing used for the cacodemon now simply add the nogravity flag to the Thing definition.

nickel7000
February 4th, 2005, 02:46 PM
the thing for the cacodemon already has the flag "mf_nogravity". death seems to override it though

DaniJ
February 4th, 2005, 02:57 PM
In that case your knackered (I think), sorry.

nickel7000
February 4th, 2005, 03:05 PM
damn. well thanks anyway

primus1236
February 4th, 2005, 03:39 PM
Perhaps you could define a new death state?

DaniJ
February 4th, 2005, 03:56 PM
Well you could try but I think there might be some hardcoded switch in place but I'm not sure. It's the exact same reason you can't create a new item just through DED editing.

nickel7000
February 4th, 2005, 04:20 PM
Perhaps you could define a new death state?

ive already done that for the object that im having the problem with. let me explain what im trying to do

im trying to make a def file that allows the twitchers to be killed. ive got it working for the impaled twitcher already. he twitches around on his stick like normal, but if he gets shot, he stops twitching. i tried to do this with the hanging torso twitcher too, only he falls off the ceiling when he gets shot. the death state i had to make for him doesnt seem to be exempt to the falling death rule. i only wish there was some way around it...

DaniJ
February 4th, 2005, 04:25 PM
Yeah I know. I'll have a look at the code (when I get a chance) to see why it behaves like that. I'm affraid I don't have a solution atm.