-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
88 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 32 additions & 2 deletions
34
addons/sourcemod/scripting/zombie_riot/custom/weapon_slug_rifle.sp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,46 @@ | ||
#pragma semicolon 1 | ||
#pragma newdecls required | ||
|
||
float Uranium_TimeTillBigHit[MAXTF2PLAYERS][MAXENTITIES]; | ||
void Uranium_MapStart() | ||
{ | ||
Zero2(Uranium_TimeTillBigHit); | ||
} | ||
|
||
void EnemyResetUranium(int enemy) | ||
{ | ||
for(int client; client <= MaxClients ; client++) | ||
{ | ||
Uranium_TimeTillBigHit[client][enemy] = 0.0; | ||
} | ||
} | ||
|
||
public void Weapon_Anti_Material_Rifle(int client, int weapon, const char[] classname, bool &result) | ||
{ | ||
EmitSoundToAll("npc/vort/attack_shoot.wav", client, SNDCHAN_STATIC, 80, _, 1.0); | ||
Client_Shake(client, 0, 50.0, 25.0, 1.5); | ||
} | ||
|
||
|
||
public void Weapon_Anti_Material_Rifle_Deploy(int client, int weapon) | ||
{ | ||
if(Items_HasNamedItem(client, "Head Equipped Blue Goggles")) | ||
if (i_CustomWeaponEquipLogic[weapon] == WEAPON_URANIUM_RIFLE) // 125 | ||
{ | ||
if(Items_HasNamedItem(client, "Head Equipped Blue Goggles")) | ||
{ | ||
Attributes_Set(weapon, 304, 1.1); | ||
} | ||
} | ||
} | ||
|
||
|
||
void WeaponUranium_OnTakeDamage(int attacker,int victim, float &damage, int weapon, float damagePosition[3]) | ||
{ | ||
if(Uranium_TimeTillBigHit[attacker][victim] < GetGameTime()) | ||
{ | ||
Attributes_Set(weapon, 304, 1.1); | ||
damage *= 2.2; | ||
Uranium_TimeTillBigHit[attacker][victim] = GetGameTime() + 20.0; | ||
EmitSoundToClient(attacker, "weapons/physcannon/energy_sing_explosion2.wav", attacker, SNDCHAN_STATIC, 80, _, 1.0); | ||
TE_Particle("mvm_soldier_shockwave", damagePosition, NULL_VECTOR, {0.0,0.0,0.0}, -1, _, _, _, _, _, _, _, _, _, 0.0, .clientspec = attacker); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters