Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Addon Api Documentation website
#11
@pieter i disabled account registration and comments.

I thought comments can be usefull... but you're rightWink
Reply

#12
documentations shouldnt have comments or any other interaction then explaining how shit works Smile

see it as adding a comment section to every wikipedia page Tongue
Had a life, Got a modem..
Reply

#13
Comments were activated because when i made the website, i thought about good comments on php.net, so i thought some comments can be useful...

But without comments it will be proper for sureWink
Reply

#14
The comments on php.net helped me a lot.
Altough it would be more useful if people didn't had to register to place comments
Reply

#15
@Ich1994 did it already :/
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#16
(07-15-2012, 19:47)narkos Wrote: Also what is that:
Code:
int Entity_World //Integer holding the EntityNum of 'World'
int AddonFrameInterval //Integer holding the interval of OnAddonFrame in milliseconds
Is that like global addon variables available in all the plugins?

Thx in advance for the answers!

Very good job!

Entity_World: Every entity has it's own number (ID). The last entity (2047) is the world entity. The entity which includes everything. It is needed if you for example want to display a hudelement to everyone.

AddonFrameInterval: The event OnAddonFrame is triggered by a thread in the addon. This thread has a specific interval which is currently 250ms (4FPS). However since this number could change one time in the developement I created this constant variable which holds this interval so plugin developers can use this instead of a number. For example if you want to do something every second:

CSHARP Code
  1. private int counter = 0;
  2.  
  3. public override void OnAddonFrame()
  4. {
  5. counter++;
  6. if(counter==1000/AddonFrameInterval)
  7. {
  8. counter = 0;
  9. //do your stuff here
  10. //exectued every second
  11. }
  12. }
[Image: azuw.jpg]
Reply

#17
Thank you!

Will the next addon update have more variables like this? Is it usefull to create a new section for 'variables' as 'functions', 'events' and 'Struct/Enums' sections in the doc?
Or should i had them in 'Struct/Enums' section?

I saw in a post that you already added weaponbuilder to the next addon update? Can i get more infos yet to integrate to the doc? Wink

Thanks!
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Release] Windows 8.1 Fix for MW3 Server Addon master131 16 18,201 09-29-2014, 23:08
Last Post: SuperNovaAO
Brick [Release] MW3 Server Administration Addon iRoNinja 5 9,013 11-10-2013, 15:46
Last Post: Casper
  Hosting With Addon obliviron 9 7,471 11-04-2013, 22:13
Last Post: d0h!
  Getting text from a website JustDoingThisShit 2 2,855 10-21-2013, 08:00
Last Post: JustDoingThisShit
  Issue with server addon and NAT dimitrifrom31 3 5,085 10-08-2013, 18:11
Last Post: iRoNinja
  [Release] CS addon for MW2(Sounds,show damage) Fl0w_.JACKDAN 1 4,691 09-29-2013, 19:46
Last Post: Nekochan
  @Nukem, and New addon E-losev 4 4,501 08-23-2013, 20:45
Last Post: yokai134
  [Request] download link server exe for addon lander 2 2,962 08-01-2013, 19:57
Last Post: lander
  Help Addon information Bandarigoda123 2 3,392 07-20-2013, 15:47
Last Post: Bandarigoda123
  [Release] 8Q's Server Addon Extension 8q4s8 5 5,282 07-10-2013, 15:56
Last Post: Hallla

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.