Page 1 of 1

Playerlib

Posted: Mon Aug 20, 2012 9:59 am
by Kami
Hello :)

I was wondering if there is anything like the Playerlib ES had already.
Like can you change health of a player, or give, strip, etc?

Thank you!

Kami

Posted: Mon Aug 20, 2012 12:32 pm
by Monday
We have a Player class, but you cannot set any of those items with it yet. (It's still a work in progress)

Posted: Mon Aug 20, 2012 9:14 pm
by BackRaw
Monday wrote:We have a Player class, but you cannot set any of those items with it yet. (It's still a work in progress)


Will the methods be written in C++ directly? I hope so... :D

Posted: Mon Aug 20, 2012 9:24 pm
by your-name-here
BackRaw wrote:Will the methods be written in C++ directly? I hope so... :D

A lot of that stuff relies of game specific data, so no. But with the functionality we have now, we'll provide functions for you to get props and stuff generically, and then provide functions to operate on that data (such as UTIL_Remove to delete an entity).

Posted: Mon Aug 20, 2012 10:01 pm
by Monday
BackRaw wrote:Will the methods be written in C++ directly? I hope so... :D


Well mostly everything can be accessed directly, however when the engine becomes a bit of a pain we will provide a python library to make life a little easier. ServerVar is one such example. It does nothing you couldn't do yourself, it just makes developing a little less time consuming.