Health sensor in chemical grenades fix (#66014)
Health sensor in chemical grenades fix (#66014)

The health sensor is an assembly part. It contains two vars called 'secured' and 'scanning'.

In order to attach an assembly part to another assembly part (e.g. a health sensor to a signaller), both have to be attachable (meaning 'secured' = FALSE). After they are attached together, 'secured' will be TRUE. When the assembly is triggered, it checks if 'secured' == TRUE. Problem is, that a grenade is not an assembly part. If you use a screwdriver on the sensor to make it attachable, the chemical grenade won't work. The var 'secured' was simply not intended for usage inside a chemical grenade. Further confusion ensues when the now-attachable part is attached to the chemical grenade via an Attach-/Detach menu, which has nothing to do with the sensor being attachable (secured). This fix always secures the sensor when attaching it.

The other var, 'scanning' determines if the health sensor is currently active or not. A potential pitfall is to not activating it before attaching it to a chemical grenade, assuming that you have to activate the grenade itself to arm it (which in this case will just make the grenade go boom, disregarding the sensor). Since it does not make any sense to create a chemical grenade with an inactive sensor, this fix always enables the sensor when attaching it.
CPTANT/-tg-station,Jordie0608/tgstation,tgstation/-tg-station,CPTANT/-tg-station,tgstation/-tg-station,Bawhoppen/-tg-station,tgstation/-tg-station,MicroWorldwide/SS13-TG-station,Jordie0608/tgstation,CPTANT/-tg-station,MicroWorldwide/SS13-TG-station,Bawhoppen/-tg-station,Cruix/-tg-station,Jordie0608/tgstation,MicroWorldwide/SS13-TG-station,tgstation/tgstation,ShizCalev/tgstation,Cruix/-tg-station,tgstation/tgstation,tgstation/-tg-station,Bawhoppen/-tg-station,MicroWorldwide/SS13-TG-station,tgstation/tgstation,CPTANT/-tg-station,CPTANT/-tg-station,ShizCalev/tgstation,tgstation/tgstation,Bawhoppen/-tg-station,Jordie0608/tgstation,MicroWorldwide/SS13-TG-station,Bawhoppen/-tg-station,ShizCalev/tgstation,Jordie0608/tgstation,Cruix/-tg-station,Cruix/-tg-station,Cruix/-tg-station,tgstation/tgstation,tgstation/tgstation,CPTANT/-tg-station,CPTANT/-tg-station,MicroWorldwide/SS13-TG-station,Jordie0608/tgstation,Cruix/-tg-station,CPTANT/-tg-station,ShizCalev/tgstation,Jordie0608/tgstation,Cruix/-tg-station,tgstation/tgstation,ShizCalev/tgstation,Bawhoppen/-tg-station,Bawhoppen/-tg-station,Bawhoppen/-tg-station,Cruix/-tg-station,ShizCalev/tgstation,ShizCalev/tgstation,MicroWorldwide/SS13-TG-station,tgstation/tgstation,MicroWorldwide/SS13-TG-station,Jordie0608/tgstation,ShizCalev/tgstation