Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
artvin01 committed Sep 20, 2024
1 parent 91a1217 commit 55b1486
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 9 deletions.
2 changes: 1 addition & 1 deletion addons/sourcemod/configs/zombie_riot/weapons.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@

"classname" "tf_weapon_shotgun_primary"
"index" "199"
"attributes" "809 ; 1 ; 2 ; 4.3 ; 4 ; 0.25 ; 6 ; 1.0 ; 97 ; 1.0 ; 45 ; 1.0 ; 106 ; 1.0"
"attributes" "809 ; 1 ; 2 ; 4.3 ; 4 ; 0.45 ; 6 ; 1.0 ; 97 ; 1.0 ; 45 ; 1.0 ; 106 ; 1.0"
"ammo" "20" //Shotgun ammo
"model" "models/weapons/c_models/c_shotgun/c_shotgun.mdl"
// "func_attack" "Weapon_Annabelle"
Expand Down
2 changes: 2 additions & 0 deletions addons/sourcemod/scripting/zombie_riot/music.sp
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,8 @@ void PlayTeamDeadSound()
void Music_RoundEnd(int victim, bool music = true)
{
ExcuteRelay("zr_gamelost");
//lastman fail. end music.
Music_EndLastmann();

for(int client=1; client<=MaxClients; client++)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,12 @@ static void ClotThink(int iNPC)
int health = GetEntProp(target, Prop_Data, "m_iHealth");
if(health > maxhealth)
health = maxhealth;

health -= maxhealth / 60;
float ScalingDo = MultiGlobalHealthBoss;
if(ScalingDo <= 0.75)
ScalingDo = 0.75;

health -= maxhealth / RoundToNearest(60.0 / ScalingDo);

if(health < 1)
{
// 300 seconds to kill Goggles
Expand Down
16 changes: 11 additions & 5 deletions addons/sourcemod/scripting/zombie_riot/object/obj_ammobox.sp
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,15 @@ static bool ClotInteract(int client, int weapon, ObjectAmmobox npc)
// npc.SetActivity("Open", true);
// npc.SetPlaybackRate(0.5);
// npc.m_flAttackHappens = GetGameTime(npc.index) + 1.4;
if(AmmoboxUsed(client, npc.index))
int UsedBoxLogic = AmmoboxUsed(client, npc.index);
if(UsedBoxLogic >= 1)
{
int owner = GetEntPropEnt(npc.index, Prop_Send, "m_hOwnerEntity");
if(UsedBoxLogic >= 2)
{
Building_GiveRewardsUse(client, owner, 10, true, 0.35, true);
Barracks_TryRegenIfBuilding(client);
}
Building_GiveRewardsUse(client, owner, 10, true, 0.35, true);
Barracks_TryRegenIfBuilding(client);
}
Expand All @@ -108,7 +114,7 @@ static bool ClotInteract(int client, int weapon, ObjectAmmobox npc)
}


bool AmmoboxUsed(int client, int entity)
int AmmoboxUsed(int client, int entity)
{
int weapon = GetEntPropEnt(client, Prop_Send, "m_hActiveWeapon");

Expand Down Expand Up @@ -150,11 +156,11 @@ bool AmmoboxUsed(int client, int entity)
if(b_AggreviatedSilence[client])
mana_regen_temp *= 0.30;

mana_regen_temp *= 0.5;
// mana_regen_temp *= 0.5;

if(Current_Mana[client] < RoundToCeil(max_mana_temp))
{
Ammo_Count_Used[client] += 1;
Ammo_Count_Used[client] += 2;
ClientCommand(client, "playgamesound items/ammo_pickup.wav");
ClientCommand(client, "playgamesound items/ammo_pickup.wav");
if(Current_Mana[client] < RoundToCeil(max_mana_temp))
Expand All @@ -167,7 +173,7 @@ bool AmmoboxUsed(int client, int entity)

ApplyBuildingCollectCooldown(entity, client, 5.0, true);
Mana_Hud_Delay[client] = 0.0;
return true;
return 2;
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@
}
"Empty Fowlbeast Desc"
{
"en" "{green}Limited lifetime allies gain +30%% max health and +30%% damage, the owner gains +60%% damage for 10 seconds when summoned."
"en" "{green}Limited lifetime allies (non citizen and barracks) gain +30%% max health and +30%% damage, the owner gains +60%% damage for 10 seconds when summoned."
}
"Acahuallan Bowl"
{
Expand Down

0 comments on commit 55b1486

Please sign in to comment.