Ok i tried ALOT now and it all looks like crap. Im apparently still not that good in the data editor :)
So HOW do i make a Quake 3 Rail gun weapon?
A weapon that shoots a long beam laser out in one direction that hit anyone and slowly disappears again.
I even had the idea that if the shooting unit has behavior (red,green,blue,etc) then the color of the rail also has the color :)
First you use a persistant effect to do the offset damage similar to the railgun snipe of raynor but for more cycles and with altered filters to hit everyone. You will need to make a SOp that creates a local offset from the units weapon by the distance of the weapons effect. Create a beam actor with the weapon as the lauch site and the offset as the impact site. Under the events for the beam have a Effect.(name).Expire or Timer Expired>Set Opacity 0 with a blend time of whatever suits you. For the behavior of multiple colours there are several possible methods, you can use a Model Swap to change to a different but similar beam model, you can use set Tint Color to colour it how you want setting the emmissive to compensate for the low strength of some colours or Texture Select By Id to exchange the beam texture to that of the several rainbow coloured ones the game comes with but does not use.
If you need help with beams, this site has several tutorials on them so just choose one that creates a beam like what you want.
Ok i made it now and it give damage in a line and i have a beam modal. But when i fires the beam stays with the gun so if i move my shooting unit the beam move with him? how do i change that?
It sounds like you have an attachment or something, try removing the impact/launch attachments or changnig them. I'm too tired to mess around with it but I have a sort of "snipe" effect that works in the way you're talking about.
I made the beam as a normal model not beam. It works. And got it to stay now.
BUT... If my marine stand with the back to an enemy and make a fast turn 180ยจ then the model dont follow before 2end. shot.?
Ok now i tried to make a new type of rail gun useing a beam. (the Diamondback weapon).
How do i make that weapon beam a static length (10 range) so that it target my target unit but if the target unit is in range 5 then the beam still is 10 long?
use a persistent with one period and a periodic offset of y=-10. Create the beam from caster's position to target position of the periodic effect created by this persistent (a dummy damage effect for instance).
The create persistent target location should be set to caster, so the offset is measured from the caster's position.
Note that you'll have to change the target site for your beam actor unless you want the beam to always hit the ground, since the target is no longer a unit.
Ok i tried ALOT now and it all looks like crap. Im apparently still not that good in the data editor :)
So HOW do i make a Quake 3 Rail gun weapon?
A weapon that shoots a long beam laser out in one direction that hit anyone and slowly disappears again. I even had the idea that if the shooting unit has behavior (red,green,blue,etc) then the color of the rail also has the color :)
So how do i make this weapon?
First you use a persistant effect to do the offset damage similar to the railgun snipe of raynor but for more cycles and with altered filters to hit everyone. You will need to make a SOp that creates a local offset from the units weapon by the distance of the weapons effect. Create a beam actor with the weapon as the lauch site and the offset as the impact site. Under the events for the beam have a Effect.(name).Expire or Timer Expired>Set Opacity 0 with a blend time of whatever suits you. For the behavior of multiple colours there are several possible methods, you can use a Model Swap to change to a different but similar beam model, you can use set Tint Color to colour it how you want setting the emmissive to compensate for the low strength of some colours or Texture Select By Id to exchange the beam texture to that of the several rainbow coloured ones the game comes with but does not use.
If you need help with beams, this site has several tutorials on them so just choose one that creates a beam like what you want.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@DrSuperEvil: Go
Ok i made it now and it give damage in a line and i have a beam modal. But when i fires the beam stays with the gun so if i move my shooting unit the beam move with him? how do i change that?
Anyone? Its the only thing i need before i have made the weapon :P
The unit shoots. The beam/model is there. but i need it to stay there and not moving with the unit. :)?
Maybe try adding a buff the prevents unit movement while casting?
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Use the stationary site operations
@DrSuperEvil: Go
It sounds like you have an attachment or something, try removing the impact/launch attachments or changnig them. I'm too tired to mess around with it but I have a sort of "snipe" effect that works in the way you're talking about.
@Mephs: Go
Are there a map i can see your rail on?
I made the beam as a normal model not beam. It works. And got it to stay now. BUT... If my marine stand with the back to an enemy and make a fast turn 180ยจ then the model dont follow before 2end. shot.?
Ok now i tried to make a new type of rail gun useing a beam. (the Diamondback weapon).
How do i make that weapon beam a static length (10 range) so that it target my target unit but if the target unit is in range 5 then the beam still is 10 long?
use a persistent with one period and a periodic offset of y=-10. Create the beam from caster's position to target position of the periodic effect created by this persistent (a dummy damage effect for instance).
The create persistent target location should be set to caster, so the offset is measured from the caster's position.
Note that you'll have to change the target site for your beam actor unless you want the beam to always hit the ground, since the target is no longer a unit.
@Builder_Bob: Go
Hi thx. I trying to do this. But where do i set the target position of the periodic effect? Cant seem to find it :/
@Builder_Bob: Go
Ok godt it to work now. Only problem. Is as you say. that it always hit the ground.. so it looks wrong now if i hit flying units :(
Try adding a search effect and if it is air then it uses a different impact site.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg