Hi everyone, I would like to slightly modify the original behavior of vanilla duke, I’m opening this thread to keep track of my questions so I hope there isn’t a similar or identical thread.
For now just two questions:
1.Is there a way to disable quick kick and regular kick weapon? I want to make impossible for the player to kill enemies without a weapon. i.e. making the enemies immune to kicks or removing the kick feature all together (don’t mind about slimers for now)
2. When you shoot almost all weapons or an explosion is triggered the visibility of all the sectors is increased briefly, where I should look for to change this behavior?
Thank you!
Page 1 of 1
Noob coding questions. "Some questions about modifying original behavior."
#1 Posted 13 November 2020 - 09:13 AM
#2 Posted 13 November 2020 - 11:34 AM
The first one is easy:
Second one I'm not aware of whether there's a way to control this through CON code.
onevent EVENT_FIRE ife player[].curr_weapon 0 set RETURN -1 endevent onevent EVENT_QUICKKICK set RETURN -1 endevent
Second one I'm not aware of whether there's a way to control this through CON code.
This post has been edited by Doom64hunter: 13 November 2020 - 11:45 AM
#3 Posted 13 November 2020 - 11:38 AM
2. Add WEAPON_NOVISIBLE to WEAPON*_FLAGS variables. You'll also want to avoid use of the EXPLOSION2 actor which has this behavior hardcoded.
https://wiki.eduke32...i/WEAPONx_FLAGS
https://wiki.eduke32...i/WEAPONx_FLAGS
Share this topic:
Page 1 of 1