noise.c 704 B

1234567891011121314151617181920212223
  1. class NoiseSystem
  2. {
  3. private void NoiseSystem() {}
  4. private void ~NoiseSystem() {}
  5. proto void AddNoise(EntityAI source_entity, NoiseParams noise_params, float external_strenght_multiplier = 1.0);
  6. proto void AddNoisePos(EntityAI source_entity, vector pos, NoiseParams noise_params, float external_strenght_multiplier = 1.0);
  7. //! Will make a noise at that position which the AI will "see" for the duration of 'lifetime'
  8. proto void AddNoiseTarget(vector pos, float lifetime, NoiseParams noise_params, float external_strength_multiplier = 1.0);
  9. }
  10. class NoiseParams
  11. {
  12. void NoiseParams()
  13. {
  14. }
  15. proto native void Load(string noise_name);
  16. proto native void LoadFromPath(string noise_path);
  17. }