before all, I am brick. I enjoy your work so much, it's realy incredible the mods for doom.
I am with some doubts with railgun. How Can I put the Y offset
ex:
a_customrailgun(damage, spawnoft_x"y", ...)
thank you
customrailgun
- Rachael
- Developer
- Posts: 3647
- Joined: Sat May 13, 2006 10:30
Re: customrailgun
This is not a feature suggestion. The topic has been moved.
- Gez
- Developer
- Posts: 1399
- Joined: Mon Oct 22, 2007 16:47
Re: customrailgun
That's a bit misleading, you do not set the X and Y offsets separately. Instead, you just specify the distance away from the center of the shooter. X and Y are then calculated by trigonometry from the shooter's angle and that distance.brick wrote:before all, I am brick. I enjoy your work so much, it's realy incredible the mods for doom.
I am with some doubts with railgun. How Can I put the Y offset
ex:
a_customrailgun(damage, spawnoft_x"y", ...)
thank you
-
- Posts: 11
- Joined: Mon Aug 10, 2009 14:12
Re: customrailgun
ok, I found a way (difficult) to do a height.Gez wrote:That's a bit misleading, you do not set the X and Y offsets separately. Instead, you just specify the distance away from the center of the shooter. X and Y are then calculated by trigonometry from the shooter's angle and that distance.
Code: Select all
actor mekanos
{
...
States
{
Railgun:
NUL2 IJKLM 4 A_FaceTarget
NUL2 N 10 A_CustomMissile("RailgunSpawner", 57, 0)
NUL2 OPQR 6
Goto Decision
...
}
Actor RailgunSpawner
{
Radius 4
Height 4
Speed 10
Damage 0
+RIPPER
+DOOMBOUNCE
PROJECTILE
States
{
Spawn:
NULL A 1
NULL A 1 A_SpawnItem("RailMonster",1,0,0)
Stop
}
}
Actor RailMonster
{
MONSTER
Radius 1
Height 1
Speed 0
+NOGRAVITY
+NOCLIP
+FRIENDLY
States
{
Spawn:
NULL A 0 A_UnSetShootable
NULL A 0 A_Look
See:
NULL A 0 A_Chase
Missile:
NULL A 0 A_FaceTarget
NULL A 0 A_CustomRailgun(random(5, 50),0,"blue","white",1,10,3)
Stop
}
}
- Gez
- Developer
- Posts: 1399
- Joined: Mon Oct 22, 2007 16:47
Re: customrailgun
Yeah, that's X and Y relative to the world (so, horizontal, the height is the Z axis), not relative to the screen.brick wrote:ok, I found a way (difficult) to do a height.Gez wrote:That's a bit misleading, you do not set the X and Y offsets separately. Instead, you just specify the distance away from the center of the shooter. X and Y are then calculated by trigonometry from the shooter's angle and that distance.
-
- Posts: 11
- Joined: Mon Aug 10, 2009 14:12
Re: customrailgun
ok, my quake bfg I do the samething, but cant anyone do a new action to stay more easy, like this:Gez wrote:Yeah, that's X and Y relative to the world (so, horizontal, the height is the Z axis), not relative to the screen.brick wrote:ok, I found a way (difficult) to do a height.Gez wrote:That's a bit misleading, you do not set the X and Y offsets separately. Instead, you just specify the distance away from the center of the shooter. X and Y are then calculated by trigonometry from the shooter's angle and that distance.
A_CustomRailgunEX(damage, "damagetype", spawnofs_xy, "spawn height", ringcolor, corecolor, flags, float max diff)
guy what is "float max diff"?