Raised This Month: $32 Target: $400
 8% 

[Native] Custom Entities


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hedgehog Fog
Senior Member
Join Date: Jun 2010
Location: Ukraine
Old 10-06-2016 , 14:47   [Native] Custom Entities
Reply With Quote #1


Custom Entities API

Description

This API help you create some custom entities for your mod with some presets like models, size, etc.
It's can be used to create gameplay entities, items, static props.
https://forums.alliedmods.net/showth...12#post2467312

__________________

❄️ CS Snow Wars - Mod based on snowballs fights
🧟 CS Zombie Panic - A port of HL Zombie Panic!
🎃 CS Halloween Mod - Completely new gamemode for Halloween Holidays
📦 AMXXPack - CLI and build system for amxx projects
🔧 Custom Entities API - API to register custom entities

Last edited by Hedgehog Fog; 11-03-2016 at 08:19.
Hedgehog Fog is offline
Hedgehog Fog
Senior Member
Join Date: Jun 2010
Location: Ukraine
Old 10-08-2016 , 11:32   Re: [Native] Custom Entities
Reply With Quote #2

Useless. RegisterHamFromEntity works incorrect and register hook for all custom entities. So you can't make specific hooks for different custom entities.
And I found bug and buffer overflow problem.
__________________

❄️ CS Snow Wars - Mod based on snowballs fights
🧟 CS Zombie Panic - A port of HL Zombie Panic!
🎃 CS Halloween Mod - Completely new gamemode for Halloween Holidays
📦 AMXXPack - CLI and build system for amxx projects
🔧 Custom Entities API - API to register custom entities

Last edited by Hedgehog Fog; 10-11-2016 at 08:54.
Hedgehog Fog is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-08-2016 , 16:21   Re: [Native] Custom Entities
Reply With Quote #3

RegisterHamFromEntity works as expected.

Code:
/**
 * Hooks the virtual table for the specified entity's class.
 * An example would be: RegisterHam(Ham_TakeDamage, id, "player_hurt");
 * Look at the Ham enum for parameter lists.
 * Note: This will cause hooks for the entire internal class that the entity is
 *       not exclusively for the provided entity.
 *
__________________
Arkshine is offline
Hedgehog Fog
Senior Member
Join Date: Jun 2010
Location: Ukraine
Old 10-08-2016 , 17:27   Re: [Native] Custom Entities
Reply With Quote #4

Arkshine,
I know it now, but didn't know it before. I need make some refactoring to make this API usefull.
__________________

❄️ CS Snow Wars - Mod based on snowballs fights
🧟 CS Zombie Panic - A port of HL Zombie Panic!
🎃 CS Halloween Mod - Completely new gamemode for Halloween Holidays
📦 AMXXPack - CLI and build system for amxx projects
🔧 Custom Entities API - API to register custom entities

Last edited by Hedgehog Fog; 10-08-2016 at 18:18.
Hedgehog Fog is offline
Hedgehog Fog
Senior Member
Join Date: Jun 2010
Location: Ukraine
Old 10-08-2016 , 21:24   Re: [Native] Custom Entities
Reply With Quote #5

Updated.
  • Removed some attribute presets:
    • SubmodelIndex
    • SpawnSound
    • RemoveSound
    • IsPickup
    • PickupSound
  • ZOffset replaced to Offset for all axis.
  • Added CE_CheckAssociation function for check association between entity and current plugin (can be usefull for create hooks).
__________________

❄️ CS Snow Wars - Mod based on snowballs fights
🧟 CS Zombie Panic - A port of HL Zombie Panic!
🎃 CS Halloween Mod - Completely new gamemode for Halloween Holidays
📦 AMXXPack - CLI and build system for amxx projects
🔧 Custom Entities API - API to register custom entities

Last edited by Hedgehog Fog; 10-08-2016 at 21:25.
Hedgehog Fog is offline
Hedgehog Fog
Senior Member
Join Date: Jun 2010
Location: Ukraine
Old 11-03-2016 , 08:13   Re: [Native] Custom Entities
Reply With Quote #6

Updated. A lot of changes.

Moved to plugins, because finished.
https://forums.alliedmods.net/showth...12#post2467312
__________________

❄️ CS Snow Wars - Mod based on snowballs fights
🧟 CS Zombie Panic - A port of HL Zombie Panic!
🎃 CS Halloween Mod - Completely new gamemode for Halloween Holidays
📦 AMXXPack - CLI and build system for amxx projects
🔧 Custom Entities API - API to register custom entities

Last edited by Hedgehog Fog; 11-03-2016 at 08:19.
Hedgehog Fog is offline
Reply


Thread Tools
Display Modes

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 19:43.


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