Duke4.net Forums: Noob coding questions. - Duke4.net Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Noob coding questions.  "Some questions about modifying original behavior."

User is offline   Mike Norvak 

  • Music Producer

#1

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!
0

#2

The first one is easy:

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

0

User is offline   Hendricks266 

  • Weaponized Autism

  #3

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
0

User is offline   Mike Norvak 

  • Music Producer

#4

Thank you! I’m gonna try both.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks not owned by Voidpoint, LLC are the sole property of their respective owners. Play Ion Fury! ;) © Voidpoint, LLC

Enter your sign in name and password


Sign in options