VavoomC/Progs scripting questions

Talk about editing and creation of Vavoom mods

VavoomC/Progs scripting questions

Postby b0rsuk » 30 Jan 2011 18:54

The purpose of this thread is to talk about "how to do stuff" or "how stuff works" in VavoomC/progs. Since my mod works by now, asking my questions in the thread "how to get mod working" isn't right. At the same time, there's
User avatar
b0rsuk
 
Posts: 189
Joined: 10 May 2010 15:55

Re: VavoomC/Progs scripting questions

Postby Janis Legzdinsh » 30 Jan 2011 20:52

b0rsuk wrote:What are Special variables ? For instance A_FPunchAttack in Hexen uses Special1 variable to keep track of punches that hit. Every third punch is a hook with double damage
User avatar
Janis Legzdinsh
Site Admin
 
Posts: 1952
Joined: 13 Jan 2002 08:30
Location: Limassol, Cyprus

Re: VavoomC/Progs scripting questions

Postby b0rsuk » 31 Jan 2011 09:01

I modified punch attack to fire missiles. Upon hitting, DoSpecialDamage method of the missile increases the Special1 by 1. So far it works. But on new attack it's apparent the counter is reset for new spawned missile. Appa
User avatar
b0rsuk
 
Posts: 189
Joined: 10 May 2010 15:55

Re: VavoomC/Progs scripting questions

Postby Firebrand » 31 Jan 2011 13:25

To use translations like that, you need to modify the pallete.pcx file inside the "basev/hexen/" directory, you need to add rows on the bottom of the image, since the player has 8 translations (or 7 in arrays), you'll need to use a number bigger
User avatar
Firebrand
 
Posts: 1000
Joined: 11 Feb 2004 08:12
Location: Mexico

Re: VavoomC/Progs scripting questions

Postby b0rsuk » 06 Feb 2011 20:19

Physics of items

I modified Disc of Repulsion to attract some items - mana created by Hammer of Retribution. The hammer uses 40 mana per shot, and spawns 40 mana where it hits. For player's convenience, and to make things more interesting, Disc of Repuls
User avatar
b0rsuk
 
Posts: 189
Joined: 10 May 2010 15:55

Re: VavoomC/Progs scripting questions

Postby Firebrand » 08 Feb 2011 00:34

Mass doesn't actually affect velocity at all, only on Z, but the effect is minimal on it.

Did you tried removing the bFloatBob flag while moving mana items? It could affect the Z movement a bit.
User avatar
Firebrand
 
Posts: 1000
Joined: 11 Feb 2004 08:12
Location: Mexico

Re: VavoomC/Progs scripting questions

Postby b0rsuk » 08 Feb 2011 10:52

I'll play around with FloatBob function, thanks. I know it can mess up stuff, becaue I tried it on floating bridges :-).

I don't think the effect is always minimal
User avatar
b0rsuk
 
Posts: 189
Joined: 10 May 2010 15:55

Re: VavoomC/Progs scripting questions

Postby b0rsuk » 13 Feb 2011 20:19

I'm trying to write an actor method that triggers item pickup. When player is close enough, the item should be picked up. I don't want to just increase item Radius, because this has side effects (collision when blasted with Disc o
User avatar
b0rsuk
 
Posts: 189
Joined: 10 May 2010 15:55

Re: VavoomC/Progs scripting questions

Postby Firebrand » 14 Feb 2011 02:12

Is your item marked with the bSpecial flag? If it isn't then the game won't call the proper methods to pick it up if touched by the player.
User avatar
Firebrand
 
Posts: 1000
Joined: 11 Feb 2004 08:12
Location: Mexico

Re: VavoomC/Progs scripting questions

Postby b0rsuk » 26 Feb 2011 18:55

Okay, this may be a little off-topic, but it jumped at me. Below is a piece of code from linespec/ArtiBlastRadius.vc . There are special cases for certain missiles. Note the way they're checked.

if (victim.bMissile)
137
User avatar
b0rsuk
 
Posts: 189
Joined: 10 May 2010 15:55

Re: VavoomC/Progs scripting questions

Postby Crimson Wizard » 27 Feb 2011 16:49

Umm, b0rsuk, did you just removed your last post about unaffected ghosts? ;)
I may be wrong but I had a feeling you've got some mistake in 'if/else if' structure.

Regar
Crimson Wizard
 
Posts: 881
Joined: 09 Nov 2005 14:21
Location: St. Petersburg, Russia

Re: VavoomC/Progs scripting questions

Postby b0rsuk » 27 Feb 2011 17:45

Crimson Wizard wrote:Umm, b0rsuk, did you just removed your last post about unaffected ghosts? ;)
I may be wrong but I had a feeling you've got som
User avatar
b0rsuk
 
Posts: 189
Joined: 10 May 2010 15:55

Re: VavoomC/Progs scripting questions

Postby Firebrand » 27 Feb 2011 18:02

You are checking it wrong, it should be something like:

Code: Select all
if (link.State == link.SeeState)
{
      continue;
}

Right now, you are checking if the State is equal to the projectile's SeeState
User avatar
Firebrand
 
Posts: 1000
Joined: 11 Feb 2004 08:12
Location: Mexico

Re: VavoomC/Progs scripting questions

Postby b0rsuk » 27 Feb 2011 18:25

Firebrand wrote:You are checking it wrong, it should be something like:

Code: Select all
if (link.State == link.SeeState)
{
      continue;
}

Right now, you are checking if the State is equal to the projectile'
User avatar
b0rsuk
 
Posts: 189
Joined: 10 May 2010 15:55

Re: VavoomC/Progs scripting questions

Postby Crimson Wizard » 27 Feb 2011 19:49

b0rsuk wrote:In the meantime, I'm trying to make my Hammer use 20 mana per shot on easy skill levels (rather than 40). I don't know how to do that, and there doesn't seem to be an easy way. Any ideas ?


Well, to get
Crimson Wizard
 
Posts: 881
Joined: 09 Nov 2005 14:21
Location: St. Petersburg, Russia

Next

Return to Editing

Who is online

Users browsing this forum: No registered users and 0 guests