Author Topic: Ship guardian and self destruct  (Read 1618 times)

0 Members and 1 Guest are viewing this topic.

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Ship guardian and self destruct
Just wondering if self-destruct should work if a ship-guardian-threshold is used?  Didn't notice a problem in my early mission testing but now the bases I have set to self-destruct aren't blowing up (at least client side) and I have the felling the guardian is the reason why. 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Ship guardian and self destruct
It really shouldn't. The only place the game actually does anything with the ship-guardian or ship-guardian-threshold data is in ship_do_damage(). Self destruct completely bypasses this and goes straight to ship_hit_kill().

I'll try to remember to take a look tonight though. Can you test if the problem occurs in SP too?
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Ship guardian and self destruct
I think it was working on the host side.  Did the outposts self-destruct after the base in M04 yesterday?  I was originally testing the mission with the Vree ship invulnerable and remember those outposts going up.  I'll see if that works first.  If it doesn't then I'll try single.
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Ship guardian and self destruct
Well the self destruct of a ship with ship-guardian-threshold works in multi as the host.  Possible client bug?
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Ship guardian and self destruct
It's possible. Seems odd though, the game should pass information to the client that tells it to blow up. I'm pretty sure I saw the multi callback to do that.

I'll try to take a look at it tonight. But I've been busy of late so I can't promise anything.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Ship guardian and self destruct
Well there is always the possibility I just didn't get that packet as a client.  Tried looking at the code but it's above my head.  Not much in there isn't.  It did look like it was doing things differently single/host as opposed to client. 

Probably should write a quick test mission.  Waiting 16 minutes for the results is a kind of a waste of time. 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras