PowerupManager: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(→Events) |
||
Line 11: | Line 11: | ||
{{PowerupManager/ExportedClientFunctions}} | {{PowerupManager/ExportedClientFunctions}} | ||
=Events= | =Events= | ||
Events starting with pum are only for internal usage. | Events starting with pum are only for internal usage. You could hook into them, but most of the times it just useless. | ||
==Server== | ==Server== | ||
{{PowerupManager/ServerEvents}} | {{PowerupManager/ServerEvents}} | ||
==Client== | ==Client== | ||
{{PowerupManager/ClientEvents}} | {{PowerupManager/ClientEvents}} |
Revision as of 11:24, 17 September 2007
The powerupManager library was created to ease the use of advanced, more custom pickups (powerups).
It exists out of server and client scripts to create, handle and destroy custom powerup items.
Advanced features contain: custom clientside animations (spin, up-down), custom collision element for triggering, server side triggering (to prevent cheating), change powerup object on the fly (for example triggering such a powerup gives a random advantage based on current modelID), ...
Exported scripting functions
Server
- createPowerup
- destroyPowerup
- destroyAllPowerups
- setPowerupDimension
- getPowerupDimension
- setPowerupAnimation
- getPowerupAnimation
- setPowerupCanRespawn
- getPowerupCanRespawn
- setPowerupRespawnTime
- getPowerupRespawnTime
- getPowerupObject
- setPowerupObject
- setPowerupModelID
- getPowerupModelID
- setPowerupColShape
- getPowerupColShape
- setPowerupTemporaryTime
- getPowerupTemporaryTime
- setPowerupIsTemporary
- getPowerupIsTemporary
Client
- getPowerupDimension
- getPowerupAnimation
- getPowerupCanRespawn
- getPowerupRespawnTime
- getPowerupObject
- getPowerupModelID
- getPowerupColShape
- getPowerupTemporaryTime
- getPowerupIsTemporary
Events
Events starting with pum are only for internal usage. You could hook into them, but most of the times it just useless.