AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] BossEngine (https://forums.alliedmods.net/showthread.php?t=264276)

rswallen 06-13-2015 02:41

[ANY] BossEngine
 
2 Attachment(s)
An API that lets developers set custom attributes and properties on players such that ANY plugin may view them (and edit them in the case of properties). The core should also work with any game.

Basics:
Spoiler


Other Info:
  • When a monster is created from an egg, it inherits all its attributes in that instant. Further changes to the egg will not be reflected on the monster
  • Attributes on a monster are constant. There is no method available for editing them, only retrieving them.
  • Monster Properties are not constant. Any plugin is free to add, modify or remove properties on any monster.

TODO:
  • Make this page fancier
  • Make it possible for configs to contain filenames of other configs (that will also get loaded)
  • Allow 'Monsters' to be bound to any entity
  • Squish any bugs (help will be much appreciated)

For anything else, send me a PM

painn 06-13-2015 09:15

Re: [ANY] BossEngine
 
HI reolad new rar or zip file Error message when you extract

rswallen 06-13-2015 09:28

Re: [ANY] BossEngine
 
Weird.
Updated download link

Chdata 06-13-2015 10:34

Re: [ANY] BossEngine
 
So by attribute you just mean sort of a key and value the dev makes up, not weapon attributes.

rswallen 06-13-2015 11:01

Re: [ANY] BossEngine
 
Quote:

Originally Posted by Chdata (Post 2307485)
So by attribute you just mean sort of a key and value the dev makes up, not weapon attributes.

Precisely. The data has meaning only to those that read it. It could be a filepath for a config, a number in string form or an empty string.
It could even be somethng complex like a json result

You could (in theory) store a string of weapon attributes under the key "weapon_override_attrib". Nothing will happen. Its just random data. You need another plugin that looks for that data for stuff to happen

rswallen 06-13-2015 14:28

Re: [ANY] BossEngine
 
Update 1.0.1
- Fixed a couple of GCThink errors
- Added locks to create/destroy natives so that they cant be used during create/destroy forwards
- Fixed FindEggByName()
- Changed Monster.GetProperty/Monster.GetAttribute so that they return false if the string value is empty

Update 1.0.2
- Fixed IsValidMonster
- Fixed Properties (they actually work now)
- Monster.HasProperty now returns true if an attribute exists under the given key
- Monster.GetProperty can now be used to retrieve attribute data
- Monster.SetProperty now returns a bool (true if data was set, false if an attribute already exists with that key)
- Monster.ClearProperty now returns a bool (true if data was removed, false if an attribute already exists with that key)
- Added Monster.EggID. Returns the index of the egg used in creation

Update 1.0.3
- Fixed Monster.SetProperty

rswallen 06-14-2015 15:41

Re: [ANY] BossEngine
 
Update 1.0.4
- [internal] Monster data now stored in an ArrayList (fixes a couple of bugs)
- [internal] Monster.Heartbeat is now destroyed after the destroy forward fires

nguyenbaodanh 06-14-2015 22:10

Re: [ANY] BossEngine
 
Can you give more instruction for this ? this is only for developers to create plugin right ?

a754060604 10-21-2015 06:09

Re: [ANY] BossEngine
 
nice


All times are GMT -4. The time now is 11:33.

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