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

Items API


Post New Thread Reply   
 
Thread Tools Display Modes
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-08-2015 , 11:09   Re: Items API
Reply With Quote #11

Quote:
Originally Posted by Hedgehog95 View Post
HamletEagle,
It saves more than 100 lines of code and you don't need to allocate memory for EngFunc_AllocString everytime.
Really ? I need an API for not allocating each time ? I can simply save it in plugin_init, that's all:
PHP Code:
new SomethingHere

public plugin_init()
{
    
SomethingHere engfunc(EngFunc_AllocString"abracadabra")

Quote:
Originally Posted by Hedgehog95 View Post
fysiks,
This is enough.

You don't need remove entity, make basic checks, make/remove HamHook.
This are very simple operations that can be done easily without any API. Using an API here is improper and I would say it's a bad habit, let people learn how to deal with basic entity stuff.
__________________
HamletEagle is offline
Hedgehog Fog
Senior Member
Join Date: Jun 2010
Location: Ukraine
Old 12-08-2015 , 11:31   Re: Items API
Reply With Quote #12

Quote:
Originally Posted by HamletEagle View Post
Really ? I need an API for not allocating each time ? I can simply save it in plugin_init, that's all:
I means allocate memory for each new item.

Quote:
Originally Posted by HamletEagle View Post
This are very simple operations that can be done easily without any API. Using an API here is improper and I would say it's a bad habit, let people learn how to deal with basic entity stuff.
Change player model and team are very simple operations too, but we have API for this has been approved Approved, I have nothing against that.
API is made to simplify the process of creating something.
I don't force you to approve this plugin, I just don't understand your position.
This plugin can be ignored and continue "live" in "New Plugin Submissions".
__________________

❄️ 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; 12-08-2015 at 11:40.
Hedgehog Fog is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-08-2015 , 12:19   Re: Items API
Reply With Quote #13

Quote:
Originally Posted by Hedgehog95 View Post
I means allocate memory for each new item.


Change player model and team are very simple operations too, but we have API for this has been approved Approved, I have nothing against that.
API is made to simplify the process of creating something.
I don't force you to approve this plugin, I just don't understand your position.
This plugin can be ignored and continue "live" in "New Plugin Submissions".
New plugin is just a waiting room, we have to filter all the plugins. That's what I'm trying to do.
Not really simple operations, the player model API was made to avoid overflow which happens when you switch the team(so a model change occur) on too many players.

Think again on what your API gives and think how easy it is to do this directly. Don't tell me someone may not know, then it's time for him to learn to do basic entity manipulation.
__________________

Last edited by HamletEagle; 12-08-2015 at 12:20.
HamletEagle is offline
Reply



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 11:58.


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