Plan B

General => Bug Reports => Fixed => Topic started by: Alcor on October 09, 2016, 11:05:22 pm

Title: you can blow up a teammate with a grenade?
Post by: Alcor on October 09, 2016, 11:05:22 pm
Yesterday me and YoMama were at the president spawn when some security threw a grenade at our FBI Rancher causing it to blowup and leading to YoMama dead. YoMama told me to test it on him while we were both securites and it actually caused damage to the vehicle and killed him instantly. Was this intentionally coded this way or is it a bug?
Title: Re: you can blow up a teammate with a grenade?
Post by: Finisher on October 09, 2016, 11:55:24 pm
Same goes for the hydra teamshooting, you can damage other teammates hydra and all the smoke will appear, lose control but the vehicle will remain at 1000hp for some weird reason
Title: Re: you can blow up a teammate with a grenade?
Post by: Miau on October 10, 2016, 01:39:43 am
Yeah, these things you've mentioned can't be patched.
Title: Re: you can blow up a teammate with a grenade?
Post by: YoMama on October 10, 2016, 01:50:58 am
Yeah, these things you've mentioned can't be patched.
You're sure? I recently got hit with a teammate's grenade as president and it didn't do damage.
Title: Re: you can blow up a teammate with a grenade?
Post by: Miau on October 10, 2016, 02:03:00 am
Yeah, these things you've mentioned can't be patched.
You're sure? I recently got hit with a teammate's grenade as president and it didn't do damage.

To be honest I've never seen an explosion from a friendly grenade causing any damage, not even to team mates' vehicles. I guess the vehicles are sometimes taking a little damage because they are violently pushed by the blast. That's part of the game physics and nothing can be done about it.
About scripting, there's a callback that is called whenever a vehicle is damaged, but it doesn't report who or what caused the damage. Then we can't tell if it was caused by a friendly explosion or not, so there's no way to prevent the vehicle from taking the damage.
Title: Re: you can blow up a teammate with a grenade?
Post by: Faro0s on October 10, 2016, 05:18:02 am
Same goes for the hydra teamshooting, you can damage other teammates hydra and all the smoke will appear, lose control but the vehicle will remain at 1000hp for some weird reason

This happened to me but i just ejected out and my hydra exploded, it was a team mate of me shooting.
Title: Re: you can blow up a teammate with a grenade?
Post by: City Wok on October 10, 2016, 03:04:01 pm
sometimes happens, but only after /reclass from a team that can do damage, same was on tenshi server
Title: Re: you can blow up a teammate with a grenade?
Post by: GlennN on October 10, 2016, 08:16:13 pm
The same happens when a team mate is on top of your car and starts kicking it. The car gets damaged.