Raised This Month: $ Target: $400
 0% 

Copy Ent?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 12-13-2005 , 14:48  
Reply With Quote #5

It is, in theory, possible to copy any entity.
What I would do is this:

Create a global dynamic array using Array module.
Hook create_entity in FM, both of them.

On each create_entity, make a dynamic keytable, and store its index into the global dynamic array, at the index which is its ent ID.

Use engine or FM to hook when key/values are initialized, and store all entity key/values into the dynamic keytable represented by their entID's.

Now you have a massive table of all the entities, and all of their key/values. From this, you can completely copy an entity.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
 



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 15:48.


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