[API] Custom Entities
5 Attachment(s)
Custom Entities API Description Create custom entity on your map Just create entity with custom classname, which registered in CE APICreate custom entity
Remove custom entity correctly API CE_SPAWNER
|
Re: [API] Custom Entities
Examples
|
Re: [API] Custom Entities
???? Last time I checked item_medkit existed in (most)all mods. Including CS.
I know that's just an example, but still. |
Re: [API] Custom Entities
Shattered Heart Lynx
If you interested in more complex examples: https://forums.alliedmods.net/showthread.php?t=273992 |
Re: [API] Custom Entities
I like this, but all entities can move/attack players?
|
Re: [API] Custom Entities
EFFx
If you talking about npc preset, it's just a basics setups for npc (private data) like movetype, solidtype, takedamage etc. If you wanna make something like npc, you need to add hook for think, make first think in spawn event for entity and set pev_nextthink every think event. In think event you need make some npc logic, like target finding and attack. |
Re: [API] Custom Entities
And what you think if you add this on your Custom Entities? Only making entities have no sense for me, whats your opinion about this?
|
Re: [API] Custom Entities
EFFx,
I have no idea what do you need. It's can be helpful for complex project (Halloween Mod for example). This allow to you register new entity class and use this class on your map for example. This allow you to controll entity remove and clear some data, for example arrays, which binded to entity and store in pev_iuser1 as handlers. It's remove entities automatically in new round. It's allows you to make temp entities with life time. It's allows you to hook pickup events, it's can be usefull if you have a lot of item entities, so you don't need to create forward for each item. |
Re: [API] Custom Entities
Quote:
|
Re: [API] Custom Entities
EFFx
PHP Code:
|
All times are GMT -4. The time now is 11:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.