Raised This Month: $ Target: $400
 0% 

CSDM 2.1.3d KWo beta


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 12-22-2006 , 05:18   Re: CSDM 2.1d beta
Reply With Quote #11

Quote:
Originally Posted by kwo
Someone asked me about that...
Me?

I've looked into HLSDK about items. KWo, why don't you just hide items and make them non-solid or other way untouchable instead of removing them? Was it an optimization hint?

I tried to remove visual effect of falling down items. I did this with the next code, but read comments:
Code:
MakeEnt(item_id) {   ...     // NOTE: next code remove visual effect of falling items but an item     // can fall through the grate     if(!engfunc(EngFunc_DropToFloor, entid)) {         // item is dropped out of the level         engfunc(EngFunc_RemoveEntity, entid)         g_EntTable[entid] = -1         return 0     } }

See a screenshot to make things clearer. Stupid engine function Another way to fix it - make it invisible first. Then use tasks to emulate think function to detect an item is on the ground, then make it visible. But this can be CPU consuming. What you think?

And again a bounding boxe issue. See another screenshot. I think implementation of described above algrorithm becomes a must (we should set bounding boxes only when it's already on the ground).
Attached Thumbnails
Click image for larger version

Name:	daq2hl_droptofloor.jpg
Views:	282
Size:	51.5 KB
ID:	12734   Click image for larger version

Name:	itemmode_hang.jpg
Views:	288
Size:	44.1 KB
ID:	12735  

Last edited by Simon Logic; 12-22-2006 at 05:21.
Simon Logic is offline
Send a message via Skype™ to Simon Logic
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode