After borrowing some code from the Alternate Fire mod, I achieved 99% of my current goals.
I re-purposed Niel “Haste” Toronto’s hologram… After carefully familiarizing myself with Niel’s work, the hologram became something else… worked perfectly… except for one small problem.
What I needed it to do at a crucial moment… when the ‘hologram’, now ‘safeplayer’ dies, the original player who spawned it wasn’t supposed to die. The original player dies…
I’ve worked on this for four months, and everything I try does NOTHING.
From the original code I found this snippet…
PlayerProxy_Die( gentity_t *ent, gentity_t *inflictor, gentity_t *attacker, int damage, int mod )
It is supposed to kill the ‘player proxy’ and not the player, but isn’t used… it doesn’t seem to do anything when I try to work the code into my mod. The damage goes through G_Damage, and when the proxy dies, the player dies.
If there’s anyone who is familiar with Alternate Fire source, or thinks they can lend a helping hand to this problem, I’ll be happy to post code.
This project is just a warmup, I’m still learning. The final project will, hopefully, be a new angle concerning protection against Q3 cheaters who are using aimbots and wallhacks, as well as a ‘panic button’ for noobs.
This is, as opposed to coding strategies involving blocking the cheats themselves. I have a couple visions, and would like to see them come to fruition, in hopes of finding out if the community would accept this kind of ‘cheat protection’. But more for my main mod project, which, I feel, will require a ‘panic button’.
Thanks in advance for your consideration.