Opposite of nuke...

Discuss and provide feedback on Maps.
User avatar
YEAAAHHHHHHHHHH
Posts: 1058
Joined: Tue Jun 08, 2021 3:03 pm
Server Sponsor: Yes
Server Admin: Yes

Opposite of nuke...

Post by YEAAAHHHHHHHHHH »

Would it be quick work to make some kind of a "Link nuke"... a weapon that instantly charges nodes? Or would that mess up the gameplay?
User avatar
McLovin
Posts: 1165
Joined: Sat Apr 03, 2021 12:54 pm
Location: Salt Lake City, Utah
Server Sponsor: Yes
Server Admin: Yes

Re: Opposite of nuke...

Post by McLovin »

YEAAAHHHHHHHHHH wrote: Wed Jul 07, 2021 12:06 am Would it be quick work to make some kind of a "Link nuke"... a weapon that instantly charges nodes? Or would that mess up the gameplay?
A link nuke! I like it. That's some real out-of-the-box thinking there YEAH!
User avatar
YEAAAHHHHHHHHHH
Posts: 1058
Joined: Tue Jun 08, 2021 3:03 pm
Server Sponsor: Yes
Server Admin: Yes

Re: Opposite of nuke...

Post by YEAAAHHHHHHHHHH »

Thanks, I don’t know jack about modding. I’m just naively wishful it’d be as easy as adding a “-“ before a damage output number somewhere and changing the name/color of the gun.
User avatar
Anonymous.
Posts: 352
Joined: Sat Jun 12, 2021 10:54 pm

Re: Opposite of nuke...

Post by Anonymous. »

YEAAAHHHHHHHHHH wrote: Wed Jul 07, 2021 10:19 am Thanks, I don’t know jack about modding. I’m just naively wishful it’d be as easy as adding a “-“ before a damage output number somewhere
Actually that is correct, at least in the case of healing players.
User avatar
YEAAAHHHHHHHHHH
Posts: 1058
Joined: Tue Jun 08, 2021 3:03 pm
Server Sponsor: Yes
Server Admin: Yes

Re: Opposite of nuke...

Post by YEAAAHHHHHHHHHH »

Anonymous. wrote: Wed Jul 07, 2021 11:18 pm
YEAAAHHHHHHHHHH wrote: Wed Jul 07, 2021 10:19 am Thanks, I don’t know jack about modding. I’m just naively wishful it’d be as easy as adding a “-“ before a damage output number somewhere
Actually that is correct, at least in the case of healing players.
Could a "Link Nuke" charge a node and heal any players/vehicles within its splash damage? They all receive the same treatment once on the receiving end of a link gun anyway.
User avatar
Anonymous.
Posts: 352
Joined: Sat Jun 12, 2021 10:54 pm

Re: Opposite of nuke...

Post by Anonymous. »

With negative damage? Possibly, but I can't be bothered to test it.
User avatar
pooty
Posts: 4358
Joined: Sat Apr 03, 2021 10:22 am
Location: Michigan
Server Sponsor: Yes
Server Admin: Yes

Re: Opposite of nuke...

Post by pooty »

Interesting I could pull the deemer code and try it.
However, the harder part would the node starting...assuming the - damage thing works.

Wasn't there something like this in UT3 Warfare?
User avatar
captainsnarf
Posts: 2632
Joined: Tue Jul 06, 2021 1:51 pm
Location: Washington
Server Sponsor: Yes
Server Admin: Yes
Contact:

Re: Opposite of nuke...

Post by captainsnarf »

pooty wrote: Thu Jul 08, 2021 9:55 am However, the harder part would the node starting...assuming the - damage thing works.
I was playing around a little and got this working. Any nodes within blast radius are started.

Code: Select all

simulated function HurtRadius( float DamageAmount, float DamageRadius, class<DamageType> DamageType, float Momentum, vector HitLocation )
{
    local actor Victim;
    local ONSPowerNode Node;

    Super.HurtRadius(DamageAmount, DamageRadius, DamageType, Momentum, HitLocation);
    
    foreach VisibleCollidingActors( class 'Actor', Victim, DamageRadius, HitLocation )
	{
        if( (Victim != self) && (Victim.Role == ROLE_Authority) && (Victim.IsA('ONSPowerNode')))
		{
            Node = ONSPowerNode(Victim);
            Node.Bump(Instigator);
        }
    }
}

User avatar
pooty
Posts: 4358
Joined: Sat Apr 03, 2021 10:22 am
Location: Michigan
Server Sponsor: Yes
Server Admin: Yes

Re: Opposite of nuke...

Post by pooty »

Very cool!
Wouldn't Node.PowerCoreActive() build it?
See https://wiki.beyondunreal.com/UE2:ONSPowerNode_(UT2004)
User avatar
captainsnarf
Posts: 2632
Joined: Tue Jul 06, 2021 1:51 pm
Location: Washington
Server Sponsor: Yes
Server Admin: Yes
Contact:

Re: Opposite of nuke...

Post by captainsnarf »

Oh hey, documentation! That's probably better than Bump().

I was looking through the source code only lol. I saw that Bump() caused the node to go into constructing state. Basically it simulates the player that shot the link nuke touched the node.
Post Reply