|
From: Cobalt <co...@te...> - 2016-01-18 06:46:24
|
Came across another oddity on this function...if the ent is on a staircase and you call droptofloor (), it will place the ent's min_z on the surface of the step that I guess the tracelines in the engine pick as being the ground plane. So you can wind up with entities partially embedded into higher parts of the stairs. One of my little projects is coming up with some qc that can detect stairs kind of reliably. I have done it using the players / clients physics, which was easier since its a MOVETYPE_WALK, but for other ents such as gibs and corpses, seems to pose a new challenge. ----- Original Message ----- From: "Cobalt" <co...@te...> To: "QC" <qua...@li...> Cc: "Forest Hale" <lor...@gh...> Sent: Sunday, January 03, 2016 1:30 PM Subject: [Quake-C] droptofloor () > Interesting function. > > I call it a "destructive" function because it actually will drop the ent > calling it to the floor no matter what when you call it. I have tested it > using an dummy ent as "self" to avoid that problem, but I also learned > that > if the floor has openings or gratings / gaps that pass through to a lower > level, droptofloor will drop the ent through the grating / openings. Not > sure if this is 100% of the time, or if the tracelines or whatever the > engine is doing happens to contact > openings in the floor all the time to fool it. Seems to me for this to > work > right, the function would need some redesign to either let you do a non > destructive test on the ent , or actually move the ent to the floor. > > Also the function checkbottom () seems to work well on ents that have all > 4 > lower corners of their bounding box resting on a solid floor, with no > openings or gratings. So if this was somehow worked into droptofloor (), I > think it would be a much better built in than it is now. > > > == > Cobalt > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Quake-c-users mailing list > Qua...@li... > https://lists.sourceforge.net/lists/listinfo/quake-c-users > Project Homepage: [ https://sourceforge.net/projects/quake-c/ > ] > |