]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commit
Fixed electro secondary limit being global
authorDr. Jaska <drjaska83@gmail.com>
Mon, 29 Mar 2021 13:28:16 +0000 (13:28 +0000)
committerterencehill <piuntn@gmail.com>
Mon, 29 Mar 2021 13:28:16 +0000 (13:28 +0000)
commit1d4a86a094dd0c74b4259b6b7e39ec1b80cd13cd
treede7254be0ddab24e2951fe20e893afb76a911c54
parent09c56b2681ad4dcf0f51965ff35af1e35b01a39b
Fixed electro secondary limit being global
Now it tracks which electro entity has fired how many balls and destroys
the oldest ones of that electro entity, not the oldest of any electro
entity. I had to clone and edit the rubble functions to support entity
storing and comparing the owner of the child entity to given entity,
those are named electrorubble but can be renamed, they are just created
for electro, they support other entities too and not only electro balls.
qcsrc/common/effects/qc/casings.qc
qcsrc/common/effects/qc/gibs.qc
qcsrc/common/effects/qc/rubble.qc
qcsrc/common/effects/qc/rubble.qh
qcsrc/common/weapons/weapon/electro.qc
qcsrc/lib/intrusivelist.qh