Raised This Month: $12 Target: $400
 3% 

[ANY] BossEngine


Post New Thread Reply   
 
Thread Tools Display Modes
Author
rswallen
SourceMod Donor
Join Date: Jun 2013
Location: 127.0.0.1
Plugin ID:
4675
Plugin Version:
1.0.0
Plugin Category:
Technical/Development
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Monsters made easy
    Old 06-13-2015 , 02:41   [ANY] BossEngine
    Reply With Quote #1

    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
    Attached Files
    File Type: zip Example.zip (19.9 KB, 252 views)
    File Type: zip BossEngine_1.0.4.zip (25.0 KB, 276 views)
    __________________

    Last edited by rswallen; 06-15-2015 at 09:46.
    rswallen is offline
    painn
    Member
    Join Date: Mar 2009
    Old 06-13-2015 , 09:15   Re: [ANY] BossEngine
    Reply With Quote #2

    HI reolad new rar or zip file Error message when you extract
    painn is offline
    rswallen
    SourceMod Donor
    Join Date: Jun 2013
    Location: 127.0.0.1
    Old 06-13-2015 , 09:28   Re: [ANY] BossEngine
    Reply With Quote #3

    Weird.
    Updated download link
    __________________
    rswallen is offline
    Chdata
    Veteran Member
    Join Date: Aug 2012
    Location: Computer Chair, Illinois
    Old 06-13-2015 , 10:34   Re: [ANY] BossEngine
    Reply With Quote #4

    So by attribute you just mean sort of a key and value the dev makes up, not weapon attributes.
    __________________
    Chdata is offline
    rswallen
    SourceMod Donor
    Join Date: Jun 2013
    Location: 127.0.0.1
    Old 06-13-2015 , 11:01   Re: [ANY] BossEngine
    Reply With Quote #5

    Quote:
    Originally Posted by Chdata View Post
    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
    __________________

    Last edited by rswallen; 06-13-2015 at 11:05.
    rswallen is offline
    rswallen
    SourceMod Donor
    Join Date: Jun 2013
    Location: 127.0.0.1
    Old 06-13-2015 , 14:28   Re: [ANY] BossEngine
    Reply With Quote #6

    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
    __________________

    Last edited by rswallen; 06-14-2015 at 02:16.
    rswallen is offline
    rswallen
    SourceMod Donor
    Join Date: Jun 2013
    Location: 127.0.0.1
    Old 06-14-2015 , 15:41   Re: [ANY] BossEngine
    Reply With Quote #7

    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
    __________________
    rswallen is offline
    nguyenbaodanh
    AlliedModders Donor
    Join Date: Jun 2007
    Location: HCMC, Vietnam
    Old 06-14-2015 , 22:10   Re: [ANY] BossEngine
    Reply With Quote #8

    Can you give more instruction for this ? this is only for developers to create plugin right ?
    __________________
    nguyenbaodanh is offline
    a754060604
    SourceMod Donor
    Join Date: Sep 2011
    Old 10-21-2015 , 06:09   Re: [ANY] BossEngine
    Reply With Quote #9

    nice
    a754060604 is offline
    Send a message via Skype™ to a754060604
    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 20:38.


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