Started working on volumetric features module.
Added some base functions for working with modules. It's not tested, but it compiles. CVARs are not created yet. Implemented volume events. Function VolUpdatePlayerChanges with help from VolGetPlayerStates detects if a player leave or enter a volume between main timer intervals. This solution is not final and might be expensive. Needs to be optimized later!
This commit is contained in:
26
src/zr/volfeatures/volanticamp.inc
Normal file
26
src/zr/volfeatures/volanticamp.inc
Normal file
@ -0,0 +1,26 @@
|
||||
/*
|
||||
* ============================================================================
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: volanticamp.inc
|
||||
* Type: Module
|
||||
* Description: Anti-camp handler.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
||||
/**
|
||||
* Data structure for a anti-camp volume.
|
||||
*/
|
||||
enum VolTypeAnticamp
|
||||
{
|
||||
anticamp_damage,
|
||||
anticamp_interval,
|
||||
Handle:anticamp_timer
|
||||
}
|
||||
|
||||
/**
|
||||
* Anti-camp data.
|
||||
*/
|
||||
new AnticampData[ZR_VOLUMES_MAX][VolTypeAnticamp];
|
Reference in New Issue
Block a user