So I have this weapon, and I want to be able to have a non playership fire it. I was thinking about how Ranx Gunships use their patches, but I looked in the .tdb and found nothing under the gunship nor the patches.
I tried using sysCreateWeaponFire, but it didn't generate the desired effect [it was repeating, but sysCreateWeaponFire only created one projectile.]
Questions:
a.Do Ranx gunships 'U'se their patches at all? If so, how?
b.How do you force a non playership to fire a weapon without having to resort to sysCreateWeaponFire?
c.What are factors that affect the firing of a weapon?
How to 'Force' Weapons Fire
- Aury
- Fleet Admiral
- Posts: 5421
- Joined: Tue Feb 05, 2008 1:10 am
- Location: Somewhere in the Frontier on a Hycrotan station, working on new ships.
range projectile speed lifetime
and no, they don't use the patches AFAIK
and no, they don't use the patches AFAIK
(shpOrder gPlayership 'barrelRoll)
(plySetGenome gPlayer (list 'Varalyn 'nonBinary))
Homelab Servers: Xeon Silver 4110, 16GB | Via Quadcore C4650, 16GB | Athlon 200GE, 8GB | i7 7800X, 32GB | Threadripper 1950X, 32GB | Atom x5 8350, 4GB | Opteron 8174, 16GB | Xeon E5 2620 v3, 8GB | 2x Xeon Silver 4116, 96GB, 2x 1080ti | i7 8700, 32GB, 6500XT
Workstations & Render machines: Threadripper 3990X, 128GB, 6900XT | Threadripper 2990WX, 32GB, 1080ti | Xeon Platinum 8173M, 48GB, 1070ti | R9 3900X, 16GB, Vega64 | 2x E5 2430L v2, 24GB, 970 | R7 3700X, 32GB, A6000
Gaming Systems: R9 5950X, 32GB, 6700XT
Office Systems: Xeon 5318Y, 256GB, A4000
Misc Systems: R5 3500U, 20GB | R5 2400G, 16GB | i5 7640X, 16GB, Vega56 | E5 2620, 8GB, R5 260 | P4 1.8ghz, 0.75GB, Voodoo 5 5500 | Athlon 64 x2 4400+, 1.5GB, FX 5800 Ultra | Pentium D 3.2ghz, 4GB, 7600gt | Celeron g460, 8GB, 730gt | 2x Athlon FX 74, 8GB, 8800gts 512 | FX 9590, 16GB, R9 295x2 | E350, 8GB | Phenom X4 2.6ghz, 16GB, 8800gt | random core2 duo/atom/i5/i7 laptops
(plySetGenome gPlayer (list 'Varalyn 'nonBinary))
Homelab Servers: Xeon Silver 4110, 16GB | Via Quadcore C4650, 16GB | Athlon 200GE, 8GB | i7 7800X, 32GB | Threadripper 1950X, 32GB | Atom x5 8350, 4GB | Opteron 8174, 16GB | Xeon E5 2620 v3, 8GB | 2x Xeon Silver 4116, 96GB, 2x 1080ti | i7 8700, 32GB, 6500XT
Workstations & Render machines: Threadripper 3990X, 128GB, 6900XT | Threadripper 2990WX, 32GB, 1080ti | Xeon Platinum 8173M, 48GB, 1070ti | R9 3900X, 16GB, Vega64 | 2x E5 2430L v2, 24GB, 970 | R7 3700X, 32GB, A6000
Gaming Systems: R9 5950X, 32GB, 6700XT
Office Systems: Xeon 5318Y, 256GB, A4000
Misc Systems: R5 3500U, 20GB | R5 2400G, 16GB | i5 7640X, 16GB, Vega56 | E5 2620, 8GB, R5 260 | P4 1.8ghz, 0.75GB, Voodoo 5 5500 | Athlon 64 x2 4400+, 1.5GB, FX 5800 Ultra | Pentium D 3.2ghz, 4GB, 7600gt | Celeron g460, 8GB, 730gt | 2x Athlon FX 74, 8GB, 8800gts 512 | FX 9590, 16GB, R9 295x2 | E350, 8GB | Phenom X4 2.6ghz, 16GB, 8800gt | random core2 duo/atom/i5/i7 laptops
- digdug
- Fleet Admiral
- Posts: 2620
- Joined: Mon Oct 29, 2007 9:23 pm
- Location: Decoding hieroglyphics on Tan-Ru-Dorem
repeating weapons are "hard" to implement with sysCreateWeaponFireI tried using sysCreateWeaponFire, but it didn't generate the desired effect [it was repeating, but sysCreateWeaponFire only created one projectile.]
- Aury
- Fleet Admiral
- Posts: 5421
- Joined: Tue Feb 05, 2008 1:10 am
- Location: Somewhere in the Frontier on a Hycrotan station, working on new ships.
I would not so much say its "hard" - as the concept is easy enough to do - but more of just a total pain in the butt to implement. Because its really annoying and bothersome x_X even if the mechanics behind it are relatively simple.
And that's if you want it on, all the time.
And that's if you want it on, all the time.
(shpOrder gPlayership 'barrelRoll)
(plySetGenome gPlayer (list 'Varalyn 'nonBinary))
Homelab Servers: Xeon Silver 4110, 16GB | Via Quadcore C4650, 16GB | Athlon 200GE, 8GB | i7 7800X, 32GB | Threadripper 1950X, 32GB | Atom x5 8350, 4GB | Opteron 8174, 16GB | Xeon E5 2620 v3, 8GB | 2x Xeon Silver 4116, 96GB, 2x 1080ti | i7 8700, 32GB, 6500XT
Workstations & Render machines: Threadripper 3990X, 128GB, 6900XT | Threadripper 2990WX, 32GB, 1080ti | Xeon Platinum 8173M, 48GB, 1070ti | R9 3900X, 16GB, Vega64 | 2x E5 2430L v2, 24GB, 970 | R7 3700X, 32GB, A6000
Gaming Systems: R9 5950X, 32GB, 6700XT
Office Systems: Xeon 5318Y, 256GB, A4000
Misc Systems: R5 3500U, 20GB | R5 2400G, 16GB | i5 7640X, 16GB, Vega56 | E5 2620, 8GB, R5 260 | P4 1.8ghz, 0.75GB, Voodoo 5 5500 | Athlon 64 x2 4400+, 1.5GB, FX 5800 Ultra | Pentium D 3.2ghz, 4GB, 7600gt | Celeron g460, 8GB, 730gt | 2x Athlon FX 74, 8GB, 8800gts 512 | FX 9590, 16GB, R9 295x2 | E350, 8GB | Phenom X4 2.6ghz, 16GB, 8800gt | random core2 duo/atom/i5/i7 laptops
(plySetGenome gPlayer (list 'Varalyn 'nonBinary))
Homelab Servers: Xeon Silver 4110, 16GB | Via Quadcore C4650, 16GB | Athlon 200GE, 8GB | i7 7800X, 32GB | Threadripper 1950X, 32GB | Atom x5 8350, 4GB | Opteron 8174, 16GB | Xeon E5 2620 v3, 8GB | 2x Xeon Silver 4116, 96GB, 2x 1080ti | i7 8700, 32GB, 6500XT
Workstations & Render machines: Threadripper 3990X, 128GB, 6900XT | Threadripper 2990WX, 32GB, 1080ti | Xeon Platinum 8173M, 48GB, 1070ti | R9 3900X, 16GB, Vega64 | 2x E5 2430L v2, 24GB, 970 | R7 3700X, 32GB, A6000
Gaming Systems: R9 5950X, 32GB, 6700XT
Office Systems: Xeon 5318Y, 256GB, A4000
Misc Systems: R5 3500U, 20GB | R5 2400G, 16GB | i5 7640X, 16GB, Vega56 | E5 2620, 8GB, R5 260 | P4 1.8ghz, 0.75GB, Voodoo 5 5500 | Athlon 64 x2 4400+, 1.5GB, FX 5800 Ultra | Pentium D 3.2ghz, 4GB, 7600gt | Celeron g460, 8GB, 730gt | 2x Athlon FX 74, 8GB, 8800gts 512 | FX 9590, 16GB, R9 295x2 | E350, 8GB | Phenom X4 2.6ghz, 16GB, 8800gt | random core2 duo/atom/i5/i7 laptops
- alterecco
- Fleet Officer
- Posts: 1658
- Joined: Wed Jan 14, 2009 3:08 am
- Location: Previously enslaved by the Iocrym
I think you will find examples of repeating sysCreateWeaponFire weapons in some of Atarlosts mods on xelerus. But what do you really mean by forcing non-playerships to fire the weapons... If a ai ship has you weapon installed it will definitely use it...
It's basically a weapon that acts like a shield. Problem is that since it doesn't do damage, and is pretty short ranged, the ai doesn't fire it.
So does that mean I have to resort to sysAddObjRecurringTimerEvent? Please no. I don't want the game to crash (too many projectiles).And that's if you want it on, all the time.
- Aury
- Fleet Admiral
- Posts: 5421
- Joined: Tue Feb 05, 2008 1:10 am
- Location: Somewhere in the Frontier on a Hycrotan station, working on new ships.
if ti doesn't do damage... might as well just use an overlay?
(shpOrder gPlayership 'barrelRoll)
(plySetGenome gPlayer (list 'Varalyn 'nonBinary))
Homelab Servers: Xeon Silver 4110, 16GB | Via Quadcore C4650, 16GB | Athlon 200GE, 8GB | i7 7800X, 32GB | Threadripper 1950X, 32GB | Atom x5 8350, 4GB | Opteron 8174, 16GB | Xeon E5 2620 v3, 8GB | 2x Xeon Silver 4116, 96GB, 2x 1080ti | i7 8700, 32GB, 6500XT
Workstations & Render machines: Threadripper 3990X, 128GB, 6900XT | Threadripper 2990WX, 32GB, 1080ti | Xeon Platinum 8173M, 48GB, 1070ti | R9 3900X, 16GB, Vega64 | 2x E5 2430L v2, 24GB, 970 | R7 3700X, 32GB, A6000
Gaming Systems: R9 5950X, 32GB, 6700XT
Office Systems: Xeon 5318Y, 256GB, A4000
Misc Systems: R5 3500U, 20GB | R5 2400G, 16GB | i5 7640X, 16GB, Vega56 | E5 2620, 8GB, R5 260 | P4 1.8ghz, 0.75GB, Voodoo 5 5500 | Athlon 64 x2 4400+, 1.5GB, FX 5800 Ultra | Pentium D 3.2ghz, 4GB, 7600gt | Celeron g460, 8GB, 730gt | 2x Athlon FX 74, 8GB, 8800gts 512 | FX 9590, 16GB, R9 295x2 | E350, 8GB | Phenom X4 2.6ghz, 16GB, 8800gt | random core2 duo/atom/i5/i7 laptops
(plySetGenome gPlayer (list 'Varalyn 'nonBinary))
Homelab Servers: Xeon Silver 4110, 16GB | Via Quadcore C4650, 16GB | Athlon 200GE, 8GB | i7 7800X, 32GB | Threadripper 1950X, 32GB | Atom x5 8350, 4GB | Opteron 8174, 16GB | Xeon E5 2620 v3, 8GB | 2x Xeon Silver 4116, 96GB, 2x 1080ti | i7 8700, 32GB, 6500XT
Workstations & Render machines: Threadripper 3990X, 128GB, 6900XT | Threadripper 2990WX, 32GB, 1080ti | Xeon Platinum 8173M, 48GB, 1070ti | R9 3900X, 16GB, Vega64 | 2x E5 2430L v2, 24GB, 970 | R7 3700X, 32GB, A6000
Gaming Systems: R9 5950X, 32GB, 6700XT
Office Systems: Xeon 5318Y, 256GB, A4000
Misc Systems: R5 3500U, 20GB | R5 2400G, 16GB | i5 7640X, 16GB, Vega56 | E5 2620, 8GB, R5 260 | P4 1.8ghz, 0.75GB, Voodoo 5 5500 | Athlon 64 x2 4400+, 1.5GB, FX 5800 Ultra | Pentium D 3.2ghz, 4GB, 7600gt | Celeron g460, 8GB, 730gt | 2x Athlon FX 74, 8GB, 8800gts 512 | FX 9590, 16GB, R9 295x2 | E350, 8GB | Phenom X4 2.6ghz, 16GB, 8800gt | random core2 duo/atom/i5/i7 laptops
When I saw the luminous particle shield, I thought it was a shield made out of particles. So I'm basically making that. It's got missiles that fly about and blocks energy weapons pretty decently. Here is the code for the weapon. As you can see, its got way too many particles [Can I ask for balance testing at the same time?] and I have no clue how to get a non playership to fire it.
I guess OnUpdate would work (but given the nature of this weapon, how can I emulate it?).
I don't know how to make overlays.
stealthx would be proud.
I guess OnUpdate would work (but given the nature of this weapon, how can I emulate it?).
I don't know how to make overlays.
Code: Select all
<!-- Solar Particle Field -->
<ItemType UNID="&itSolarParticleField;"
name= "GN Particle Field"
level= "7"
modifiers= "MajorItem; SolarReactor; Notrandom; Nerefir; ParticleField"
description= "Technically the primary shield, the GN particle field is a key component to the Mayfly's success. This model was retrofitted for the Nerefir experimental Carrier."
>
<Image imageID="&rsItems1;" imageX="192" imageY="0" imageWidth="96" imageHeight="96"/>
<Weapon
type= "missile"
damage= "kinetic:0"
repeating= "150000"
fireRate= "30"
hitPoints= "25"
interaction= "5"
hitEffect= "&efShieldHit1;"
missileSpeed= "17"
accelerationFactor= "75"
lifetime= "10d5-7"
powerUse= "100"
deviceSlots= "0"
noFriendlyFire= "true"
>
<Configuration aimTolerance="5">
<Shot posAngle="180" posRadius="20" angle="0-180"/>
<Shot posAngle="180" posRadius="20" angle="360-181"/>
<Shot posAngle="180" posRadius="20" angle="0-180"/>
<Shot posAngle="180" posRadius="20" angle="360-181"/>
<Shot posAngle="180" posRadius="20" angle="0-180"/>
<Shot posAngle="180" posRadius="20" angle="360-181"/>
</Configuration>
<Effect>
<Image imageID="&rsMissiles4;" imageX="0" imageY="0" imageWidth="16" imageHeight="16" imageFrameCount="4" imageTicksPerFrame="1" randomStartFrame="true"/>
</Effect>
</Weapon>
<Invoke>
(intAutoInstall gSource gItem)
</Invoke>
</ItemType>
- Aury
- Fleet Admiral
- Posts: 5421
- Joined: Tue Feb 05, 2008 1:10 am
- Location: Somewhere in the Frontier on a Hycrotan station, working on new ships.
try making an ICX device - they have their own built-in firing AI that will shoot at incoming projectiles.
(shpOrder gPlayership 'barrelRoll)
(plySetGenome gPlayer (list 'Varalyn 'nonBinary))
Homelab Servers: Xeon Silver 4110, 16GB | Via Quadcore C4650, 16GB | Athlon 200GE, 8GB | i7 7800X, 32GB | Threadripper 1950X, 32GB | Atom x5 8350, 4GB | Opteron 8174, 16GB | Xeon E5 2620 v3, 8GB | 2x Xeon Silver 4116, 96GB, 2x 1080ti | i7 8700, 32GB, 6500XT
Workstations & Render machines: Threadripper 3990X, 128GB, 6900XT | Threadripper 2990WX, 32GB, 1080ti | Xeon Platinum 8173M, 48GB, 1070ti | R9 3900X, 16GB, Vega64 | 2x E5 2430L v2, 24GB, 970 | R7 3700X, 32GB, A6000
Gaming Systems: R9 5950X, 32GB, 6700XT
Office Systems: Xeon 5318Y, 256GB, A4000
Misc Systems: R5 3500U, 20GB | R5 2400G, 16GB | i5 7640X, 16GB, Vega56 | E5 2620, 8GB, R5 260 | P4 1.8ghz, 0.75GB, Voodoo 5 5500 | Athlon 64 x2 4400+, 1.5GB, FX 5800 Ultra | Pentium D 3.2ghz, 4GB, 7600gt | Celeron g460, 8GB, 730gt | 2x Athlon FX 74, 8GB, 8800gts 512 | FX 9590, 16GB, R9 295x2 | E350, 8GB | Phenom X4 2.6ghz, 16GB, 8800gt | random core2 duo/atom/i5/i7 laptops
(plySetGenome gPlayer (list 'Varalyn 'nonBinary))
Homelab Servers: Xeon Silver 4110, 16GB | Via Quadcore C4650, 16GB | Athlon 200GE, 8GB | i7 7800X, 32GB | Threadripper 1950X, 32GB | Atom x5 8350, 4GB | Opteron 8174, 16GB | Xeon E5 2620 v3, 8GB | 2x Xeon Silver 4116, 96GB, 2x 1080ti | i7 8700, 32GB, 6500XT
Workstations & Render machines: Threadripper 3990X, 128GB, 6900XT | Threadripper 2990WX, 32GB, 1080ti | Xeon Platinum 8173M, 48GB, 1070ti | R9 3900X, 16GB, Vega64 | 2x E5 2430L v2, 24GB, 970 | R7 3700X, 32GB, A6000
Gaming Systems: R9 5950X, 32GB, 6700XT
Office Systems: Xeon 5318Y, 256GB, A4000
Misc Systems: R5 3500U, 20GB | R5 2400G, 16GB | i5 7640X, 16GB, Vega56 | E5 2620, 8GB, R5 260 | P4 1.8ghz, 0.75GB, Voodoo 5 5500 | Athlon 64 x2 4400+, 1.5GB, FX 5800 Ultra | Pentium D 3.2ghz, 4GB, 7600gt | Celeron g460, 8GB, 730gt | 2x Athlon FX 74, 8GB, 8800gts 512 | FX 9590, 16GB, R9 295x2 | E350, 8GB | Phenom X4 2.6ghz, 16GB, 8800gt | random core2 duo/atom/i5/i7 laptops
- digdug
- Fleet Admiral
- Posts: 2620
- Joined: Mon Oct 29, 2007 9:23 pm
- Location: Decoding hieroglyphics on Tan-Ru-Dorem
an area weapon ICX would act exactly like a shield that stops projectiles... maybe with a fancy new graphics too
And adjust a bit the interaction and hitpoints, otherwise it will stop everything
And adjust a bit the interaction and hitpoints, otherwise it will stop everything
Actually, I'd have it use a capacitor bank, if that's possible.digdug wrote:an area weapon ICX would act exactly like a shield that stops projectiles... maybe with a fancy new graphics too
And adjust a bit the interaction and hitpoints, otherwise it will stop everything
Mischievous local moderator. She/Her pronouns.
How do capacitors and temperature work? If an object uses ammo and runs out, will the capacitor or temperature still work?
-
- Militia Lieutenant
- Posts: 217
- Joined: Mon Feb 14, 2011 10:38 pm
- Location: Blowing up commonwealth
I'm not an expert Modder (I'm a beginner).But if you want to balance it,there are some things that are easy to Balance like these=
Come on a Weapon(more like device)this useful should take at least 1-2 Slots.deviceSlots= "0"
If this stops all particles( And debri)it should at least use a considerable amount of energy.powerUse= "100"
I Hate This Game="Nill"
YAY NYAN CAT IS IN TRANS http://xelerus.de/index.php?s=mod&id=949
♫♫♫♫♫
♫ /l
(゚、 。 7
l、 ~ヽ
じしf_, )ノ
In IRC you'll hear great thing like this
[19:41] Azar_Wolf |oh derp, will have to leave in 10 minutes
[19:41] Ttech |NOQ!!!!!!!!!!!!!!!!!!11
[19:41] Ttech |eats Azar_Wolf
[19:41] Azar_Wolf |...
[19:41] Ttech |And spits out a ... uh...
[19:41] Ttech |I don't know
[19:41] Ttech |Its a blob
[19:42] Azar_Wolf |eww
[19:42] sdw195 |...
YAY NYAN CAT IS IN TRANS http://xelerus.de/index.php?s=mod&id=949
♫♫♫♫♫
♫ /l
(゚、 。 7
l、 ~ヽ
じしf_, )ノ
In IRC you'll hear great thing like this
[19:41] Azar_Wolf |oh derp, will have to leave in 10 minutes
[19:41] Ttech |NOQ!!!!!!!!!!!!!!!!!!11
[19:41] Ttech |eats Azar_Wolf
[19:41] Azar_Wolf |...
[19:41] Ttech |And spits out a ... uh...
[19:41] Ttech |I don't know
[19:41] Ttech |Its a blob
[19:42] Azar_Wolf |eww
[19:42] sdw195 |...
-
- Fleet Admiral
- Posts: 2876
- Joined: Thu Feb 03, 2011 5:21 am
- Location: Hmm... I'm confused. Anybody have a starmap to the Core?
Actually, it stops most of what Trans calls "energy" weapons- most matter weapons, with HP, can get through, like the Akan, or as I learned the hard way, Ares Micronukes and the Iocrym plasma weapons. I'm able to have a workaround by installing it and shipchanging to the ship and manually firing it that way (still can't figure out sysCreateWeaponFire- maybe I should request a tutorial?) However, I did see digdug's working code on the Picture Thread (2nd page I think) and I'll try to see if I can learn from it. However, there is still the question of the brokeness of the weapon.
BTW, does sysCreateWeaponFire keep the accelerationFactor?
BTW, does sysCreateWeaponFire keep the accelerationFactor?
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
Get on Discord for mod help and general chat
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.