|
Veteran Member
Join Date: Jun 2015
Location: de_dust2
|
02-20-2019
, 02:54
Re: [Any] Monster
|
#55
|
Hello, I have changed this plugin to API plugin with some natives and forwards.
You can easily create monster in your plugin now.
- Removed all commands.
- Added some natives and forwards.
- Added attack target "ct" and "tr".
- Changed monster dead event weapon from "tf2_weapon" to "weapon".
monster.inc
Spoiler
PHP Code:
#if defined _Monster_included #endinput #endif #define _Monster_included
/** * Spawn a monster. * * @param name Name of the monster. * @param model Model of the monster. * @param origin Position to spawn. * @return monster entity index, -1 if failed to spawn a monster. */ native int Monster_Spawn(char [] name, char [] model, float origin[3]);
/** * Set attribute of a monster. * * @param name Name of the monster. * @param attr Attribute to set. * @param value Value of attribute. * @return true on success, otherwise false. */ native bool Monster_Set(char [] name, char [] attr, char [] value);
/** * Remove a monster. * * @param name Name of the monster. * @return true on success, otherwise false. */ native bool Monster_Remove(char [] name);
/** * Clear all monster. * * @return true on success, otherwise false. */ native bool Monster_Clear();
/** * Clear all monster. * * @param name Name of the monster. * @param origin Position to teleport. * @return true on success, otherwise false. */ native bool Monster_Tele(char [] name, float origin[3]);
/** * Called when a monster break. * * @param monster Monster entity index. * @param client Client index. * @param weapon Weapon. * @return No return */ forward Action Monster_OnBreak(int monster, int client, const char [] weapon);
ONLY TESTED IN CSGO
https://github.com/rogeraabbccdd/CSGO-Monster-API
Example plugin
__________________
Please keep in mind, nobody have responsibility to help you, especially who don't try to Google first.
I only read messages in Chinese and English.
GitHub | Discord:Kento#2118
Last edited by rogeraabbccdd; 02-20-2019 at 02:56.
|
|
|
|