]> icculus.org git repositories - divverent/darkplaces.git/commit
Rewrite CSQC's setmodel a bit.
authorblack <black@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 1 Feb 2008 16:21:37 +0000 (16:21 +0000)
committerblack <black@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 1 Feb 2008 16:21:37 +0000 (16:21 +0000)
commit02b8f1e24bce4b4a9b641b7dd97d134a9ff9a6c4
treea98e39807d68942610f587eb55512253f9a961cd
parentdc4a3ae632a8e4ac5303680d344dc63111ccb057
Rewrite CSQC's setmodel a bit.
Add support for CSQC_Ent_Spawn to csqc. A function that is called when a entity packet from the server arrives that requires a new entity.
entity( float entnum ) CSQC_Ent_Spawn;
CSQC_Ent_Spawn needs to spawn a new entity and set its .entnum field accordingly or simply return another existing entity or world if it wants to ignore that server entity. Subsequent CSQC_Ent_Update calls are routed to that entity (or CSQC_Ent_Spawn is called again when .Version increases).

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8063 d7cf8633-e32d-0410-b094-e92efae38249
clvm_cmds.c
csprogs.c
progsvm.h
prvm_edict.c