new entity and new entity classname. ( totally new entity, created by valvehammer )
Hello, i have created new entity in my map.
Entity classname was portal_door the entity is in .bsp - testnewent.ent so the entity must be in game right? Guess what? I can not reach the entity somehow, like it dont exist but it must exist all things is right. ( I am entity lover so i know alot of things about entity ) but i still dont understand why i cant found this entity, can not touch or do something with this entity? It is a map entity right? The map entities can not reach if they are not spawn somehow in to the game. Like the entity light in goldsource engine. I did not found any cpp or h file in hlengine what show me how they do this things i think i dont have full source of goldsource engine , this is bad. i have ohters nice things like source games engine source so this is not very bad thing that some functions in goldsource are missing :) Anyway is there somehow possible to do what i want? ( Create entity with new classname and new class pevs in valve hammer editor and then do something with that entity? ) I have plan to update goldsource engine with creating some new entities like npc-s or like new door like in css or even i dont know " a new trigger_teleport way like in portal2 ( the portal_door entity ) " or that sound entity ( i dont remember his name ) but it allow to play mp3 files in map, again source engine thing :) I really hope that you guys can give me some help. ( I'm very upset about this situation, i coded ~100kb code for new entities and now i get to know that way is not working like i plan. It is just so sad :cry: ) My apologies about my bad english, i am very sorry about this. |
Re: new entity and new entity classname. ( totally new entity, created by valvehammer
Hmm. I used to meet a problem like this... Create an entity by Valve Hammer and use in AMX... I still can't do it
|
Re: new entity and new entity classname. ( totally new entity, created by valvehammer
Game doesn't let unknown classname being created.
|
Re: new entity and new entity classname. ( totally new entity, created by valvehammer
Make it a known CS entity and set one of its key values to something unique so you can determine it.
|
Re: new entity and new entity classname. ( totally new entity, created by valvehammer
Quote:
Edit: i got many ideas now. I need to open bsp file and read the .ent file inside bsp. Then i can do things ( i am also not good in reading things but it seems that now is the time to learn. ) |
Re: new entity and new entity classname. ( totally new entity, created by valvehammer
If you enable HL developer mode,you will be find that this entity was unrecognized and deleted.
But in metamod, there is a example about how to create a new entity,you can look it. |
Re: new entity and new entity classname. ( totally new entity, created by valvehammer
pfn_spawn(entid)
this function get called when my costom classname entity is in game. 2 function "pfn_keyvalue" get called when entity is gone already. Now i have function and i can get all entity data what i need but this is not enough. I need to keep this entity in game somehow. I tried to change class name to trigger_teleport ( so mayby engine think that is right entity and will keep it ) and then later change back to correct name.. no, it still delete this. Seems like entity date of death is made yet earlier or mayby on this function (function when entity spawn is called) but the pfn_spawn(entid) will be too late. I think there are variable for each entity, and if classname is wrong then variable will be true and then come funeral... So, is there any hope to save my sweet entity? mayby block this remove_entity thing or something? Edit: i am so close to solve this entity problem, please someone share your knowledge i really need this. Edit2: My bad, entity get never spawned and function never called for this entity just little mistake. Now i lost all my hope. |
| All times are GMT -4. The time now is 00:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.