User talk:Regular K: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
:See [[r_cleardecals]] and iterate the entity list with FindEntityByClassname for "hl2mp_ragdoll" and call Remove() on found ones—'''[[User:Ts2do|ts2do]]''' 19:57, 25 Jun 2006 (PDT) | :See [[r_cleardecals]] and iterate the entity list with FindEntityByClassname for "hl2mp_ragdoll" and call Remove() on found ones—'''[[User:Ts2do|ts2do]]''' 19:57, 25 Jun 2006 (PDT) | ||
::Thank you, I managed to get the decals and player ragdolls to be cleared. But how do I clear NPC ragdolls? I believe their classname is "client_ragdoll", but those are only kept on the client. How do I iterate through the client ent list, if possible? Thank you, ts2do. [[User:Regular K|Regular K]] 09:33, 26 Jun 2006 (PDT) |
Revision as of 09:33, 26 June 2006
I'm programming rounds into my mod (like how when a round ends in CS). Everything is coming good EXCEPT I cant seem to find out how to reset all props, npcs, etc back to their original state. Can anyone please help me? Regular K
See these files:—ts2do 17:01, 19 Jun 2006 (PDT)
- Thank you. Regular K
I'm trying to remove all (non-mapper placed) decals and ragdolls, can anyone help with either one? Thank you :) Regular K 18:31, 25 Jun 2006 (PDT)
- See r_cleardecals and iterate the entity list with FindEntityByClassname for "hl2mp_ragdoll" and call Remove() on found ones—ts2do 19:57, 25 Jun 2006 (PDT)
- Thank you, I managed to get the decals and player ragdolls to be cleared. But how do I clear NPC ragdolls? I believe their classname is "client_ragdoll", but those are only kept on the client. How do I iterate through the client ent list, if possible? Thank you, ts2do. Regular K 09:33, 26 Jun 2006 (PDT)