Skip to content

[TF2] Adds vscript functions to point_populator_interface #1413

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

DrBombanomcon
Copy link

Description

This PR adds various vscript functions designed to give more direct control of the populator by allowing scripts to direct control the wave state. The functions include:

  • int GetWaveNumber(); Returns the current wave number
  • int GetTotalWaveCount(); Returns the maximum waves defined in populator
  • void ForceWaveStart(); Force startes the wave, skipping count down timer
  • void SetCurrentWave(int waveNum, float CurrencyPercentage); Sets to current wave number, argument for percentage of skipped wave current to give to defenders.
  • void ForceWaveEnd(bool success); Force ends the wave, argument for defender victory.
  • void PauseBotSpawn(); Pauses bot spawning
  • void UnPauseBotSpawn(); Resumes bot spawning
  • bool BotSpawnState(); Returns if bot spawning is paused
  • void ChangeBotAttributes(string eventName); Script function for ChangeBotAttributes input
  • void ChangeDefaultEventAttributes(string eventName); Script function for ChangeDefaultEventAttributes input

> Includes vscript version of pre-existing functions and functions based on ramfod
Adds vscript support to point_populator_interface
> int GetWaveNumber(): Returns current wave number
> int GetTotalWaveCount(): Returns maximum wave count as defined by populator
> void ForceWaveEnd(bool bSuccess): Finishes the wave, argument to determine if a defender victory
> void SetCurrentWave(int waveNum, float currencyRestore): Sets current wave, argument for percentage money given for waves skipped
> void ForceWaveStart(): Starts current wave immediately, skips count down.
> void PauseBotSpawn()/UnpauseBotSpawn(): Sets bot spawn status.
> bool BotSpawnState(): Returns state for bot spawning.
> void ChangeBotAttributes(string eventName): Script hook for ChangeBotAttributes input
> void ChangeDefaultEventAttributes(string eventName): Script hook for ChangeDefaultEventAttributes input
Generalisk added a commit to Generalisk/GeneSource-SDK that referenced this pull request Jul 10, 2025
Bitl added a commit to BitlDevelopmentStudios/source-sdk-2013-bds-base that referenced this pull request Jul 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant