mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-07 09:53:21 +00:00
Updates
This commit is contained in:
parent
fd2367f41f
commit
79d37bdd34
45 changed files with 5587 additions and 3877 deletions
|
@ -50,7 +50,9 @@ stock void EntFire(const char[] name, const char[] input) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
void CreateCoinEntity(float pos[3]) {
|
||||
// int ent = CreateProp("prop_dynamic", "")
|
||||
}
|
||||
|
||||
void SetupEntities(bool blockers = true, bool props = true, bool portals = true) {
|
||||
#if defined DEBUG_BLOCKERS
|
||||
|
|
|
@ -125,6 +125,12 @@ methodmap GuessWhoGame < BaseGame {
|
|||
}
|
||||
}
|
||||
|
||||
property int TargetCoinCount {
|
||||
public get() {
|
||||
return 8;
|
||||
}
|
||||
}
|
||||
|
||||
public void Start() {
|
||||
|
||||
}
|
||||
|
@ -301,6 +307,14 @@ methodmap GuessWhoGame < BaseGame {
|
|||
SDKUnhook(client, SDKHook_OnTakeDamageAlive, OnTakeDamageAlive);
|
||||
SDKUnhook(client, SDKHook_WeaponEquip, OnWeaponEquip);
|
||||
}
|
||||
|
||||
public void PopulateCoins() {
|
||||
float pos[3];
|
||||
for(int i = 0; i < this.TargetCoinCount; i++) {
|
||||
movePoints.GetRandomPoint(pos);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stock bool ArePlayersJoining() {
|
||||
|
|
|
@ -13,13 +13,18 @@ Action Timer_RecordPoints(Handle h, int i) {
|
|||
vecLastLocation[i] = meta.pos;
|
||||
}
|
||||
}
|
||||
Game.MapTime++;
|
||||
PrintHintText(i, "Points: %d / %d", movePoints.Length, MAX_VALID_LOCATIONS);
|
||||
return Plugin_Continue;
|
||||
}
|
||||
|
||||
|
||||
bool firstCheckDone = false;
|
||||
Action Timer_WaitForPlayers(Handle h) {
|
||||
if(!isEnabled) return Plugin_Stop;
|
||||
if(!isEnabled) {
|
||||
waitTimer = null;
|
||||
return Plugin_Stop;
|
||||
}
|
||||
if(!ArePlayersJoining()) {
|
||||
Game.Debug("No players pending, ready to go");
|
||||
if(!firstCheckDone) {
|
||||
|
@ -28,6 +33,7 @@ Action Timer_WaitForPlayers(Handle h) {
|
|||
} else {
|
||||
firstCheckDone = false;
|
||||
InitGamemode();
|
||||
waitTimer = null;
|
||||
return Plugin_Stop;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue