Serious Sam Fusion 2017 (beta)

Serious Sam Fusion 2017 (beta)

Not enough ratings
Ugh-Zan IV Melee Attack
   
Award
Favorite
Favorited
Unfavorite
Content: Enemies
Type: Additions
File Size
Posted
Updated
220.640 KB
26 Mar @ 8:58pm
30 Mar @ 7:59pm
8 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
Ugh-Zan IV Melee Attack

Description
About Mod

The Guardian of Time can now stomp his foes!

In the original Serious Sam 3: BFE, Ugh-Zan had an attack that would dissuade you from coming close to him. In Fusion, this attack is broken, as it deals no damage to anything.
This mod fixes this issue. be careful from now on!

Bugs

Melee damage is dealt continuously for about half a second after the melee animation ends. This duration depends on the time when the animation started.

Mod Compatibility, Technical Info

This mod adds one file at the location:
/Content/SeriousSam3/Scripts/CustomWorldScripts/PXUghZan.lua.

Damage is always infinite. Reasons are laid out in the Lua file!

For customising, quickly playing around, program definitions:
-- Last joints in the limb chain. worldGlobals.A_UGHZAN_LEG_FRONTLEFT = "L_F_Leg_04"; worldGlobals.A_UGHZAN_LEG_FRONTRIGHT = "R_F_Leg_04"; worldGlobals.A_UGHZAN_LEG_BACKLEFT = "L_B_Leg_04"; worldGlobals.A_UGHZAN_LEG_BACKRIGHT = "R_B_Leg_04"; -- In meters. If a leg is higher than the average height of all legs by this amount, then we are about to stomp the ground. worldGlobals.A_UGHZAN_LEG_HEIGHT_EPSILON = 9.0; -- In a natural pose, the distance from ground to first joint in a leg is about 25.6m... worldGlobals.A_UGHZAN_LEG_DISTANCEFROMGROUND = 25.6; -- Radius of attack, in meters. Center is calculated as (leg's joint - DISTANCEFROMGROUND). worldGlobals.A_UGHZAN_STOMP_RADIUS = 32.0; -- Damage type that does not destroy the puppet. worldGlobals.A_UGHZAN_STOMP_DAMAGETYPE = "None"; -- Destruction name for puppet destruction. worldGlobals.A_UGHZAN_STOMP_DESTRUCTIONNAME = "Default"; -- In seconds. Amount of time it takes for leg to go from highest point to the ground (in L_B_Leg_Melee animation). worldGlobals.A_UGHZAN_STOMP_ANIMATIONTIME = 0.4; -- In seconds. Time between logic checks. worldGlobals.PXUGHZAN_WAIT = 0.35; -- Function called before inflicting damage. Target (dummy) is within attack range. Return true to deal damage or false to not deal damage. -- Can also return data that can be used later. -- Example usage is found at the top of PXUghZan.lua. worldGlobals.A_UGHZAN_STOMP_FUNC_PRESTOMP = function(actor, leg, dummy) return true, nil; end; -- Function called after inflicting damage. Not called if PRESTOMP function returned false. worldGlobals.A_UGHZAN_STOMP_FUNC_POSTSTOMP = function(actor, leg, dummy, predata) end;

9 Comments
SiberianIceBomb 16 May @ 10:03pm 
indeed
Salamander  [author] 16 May @ 3:41pm 
I am glad someone remembers! ^^
|ST1G| 16 May @ 9:07am 
This is the very attack that terrified me a lot as a child, when I had no idea that there was a jetpack lying around.
SiberianIceBomb 30 Apr @ 1:59pm 
He just literally sent me into another dimension, Immortality Negation fr, created by an Lord of Unreason who is beyond understanding (Tah-Um)
Salamander  [author] 30 Apr @ 1:57pm 
@SiberianIceBomb that's unintentional, but let's call it a feature :p
SiberianIceBomb 30 Apr @ 12:48pm 
holy shit, even i with God mod could die to his melee attack
Lily White 20 Apr @ 2:07am 
GT
Кулхацкер 2 Apr @ 2:22am 
спасибо за аву
Kayosh 30 Mar @ 11:33am 
"Damage is always infinite. Reasons are laid out in the Lua file!"

If the reason isn't "Because he's an absolute unit" then I'm gonna be sad