Quakec Function Doubt
Moderator: InsideQC Admins
18 posts
• Page 1 of 2 • 1, 2
Quakec Function Doubt
-

vegetous - Posts: 14
- Joined: Wed Oct 25, 2006 2:51 am
Something to do with killtarget, perhaps related to SUB_UseTargets (I think?) or somewhere in the monster death code!
Yeah... maybe somebody else knows
Yeah... maybe somebody else knows
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
- Sajt
- Posts: 1215
- Joined: Sat Oct 16, 2004 3:39 am
Re: Quakec Function Doubt
The function killed() in combat.qc calls a function monster_death_use(). monster_death_use() is in monsters.qc, and it stops it flying/swimming, then sets activator to self.enemy and calls SUB_UseTargets(). SUB_UseTargets() is in subs.qc, and it's the same function called when you pick up an item that has a target set. So if picking up items is firing triggers correctly then the problem is likely to lie in one of these functions in between.
- Preach
- Posts: 122
- Joined: Thu Nov 25, 2004 7:20 pm
-

Entar - Posts: 439
- Joined: Fri Nov 05, 2004 7:27 pm
- Location: At my computer
-

Entar - Posts: 439
- Joined: Fri Nov 05, 2004 7:27 pm
- Location: At my computer
Another question, but now about the deathmatch version of the mod.
Sometimes when a player is killed in this mod, he reborn as a zombie (yeah that's cool!), and if he touch the enemy that killed him, the enemy dies too (the player is already dead) and the player gains a frag.
The problem is that in the QW version of the mod, if the player does not move himself, the touch function does not work. I don't know why, but the NQ code is exactly the same and there's no bug in NQ!
Player.qc NQ Source Code - ZUMBI_Touch function at line 1039
Player.qc QW Source Code - ZUMBI_Touch function at line 991
MVD Demo Showing the bug
The TDII Mod (you will need it to see the demo)
This is the last major bug of this mod, I was able to correct all the others but this one I can't!
Sometimes when a player is killed in this mod, he reborn as a zombie (yeah that's cool!), and if he touch the enemy that killed him, the enemy dies too (the player is already dead) and the player gains a frag.
The problem is that in the QW version of the mod, if the player does not move himself, the touch function does not work. I don't know why, but the NQ code is exactly the same and there's no bug in NQ!
Player.qc NQ Source Code - ZUMBI_Touch function at line 1039
Player.qc QW Source Code - ZUMBI_Touch function at line 991
MVD Demo Showing the bug
The TDII Mod (you will need it to see the demo)
This is the last major bug of this mod, I was able to correct all the others but this one I can't!
-

vegetous - Posts: 14
- Joined: Wed Oct 25, 2006 2:51 am
Looks like the function is working contrary! When the zumbie touch the player, nothing happens but it works when the player touchs the zombie!
Any tips?
Any tips?
-

vegetous - Posts: 14
- Joined: Wed Oct 25, 2006 2:51 am
18 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: Bing [Bot] and 1 guest

