Important Message

You are browsing the archived Lancers Reactor forums. You cannot register or login.
The content may be outdated and links may not be functional.


To get the latest in Freelancer news, mods, modding and downloads, go to
The-Starport

Weapon Charging

The general place to discuss MOD''ing Freelancer!

Post Mon Dec 11, 2006 3:49 pm

Weapon Charging

Hey all,
I'm working on a battleship cannon.But i would like to try and get it to Charge up before firing. Anyone know if this is possible..and if so how? Haven't been able to find anything on the subject as of yet.

Thanks

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(" )_(" ) signature to help him gain world domination.

Post Mon Dec 11, 2006 3:58 pm

Two solutions off the top of my head...

1. Give it a really slow refire rate to simulate the charging in between shots.
2. Make it use up all the ship's power so the ship's energy has to be recharged for it to fire.



Head Modder and Admin, Phoenix RPG Server

Post Mon Dec 11, 2006 11:56 pm

soz to contradict you jacob...plz dont ban me

what you could try is creating an efect that is slower then speeds up to make it look like the energy is filling up then boom! (i've done it before it looks quite real, i would give you mine but the color is not what you would want)....cough*nomie cannon*cough

Post Tue Dec 12, 2006 2:10 am

thanks Jacob but i really wanted something visable that goes with the sound effect i've got for it.

Hotwire,i'm interested in seeing what you've got.Any chance for a looky at your code for it?

Post Tue Dec 12, 2006 3:20 am

possibly...if u have something for me...

Heres a tip (editing existing codes is faster than remaking...looks at DIamondback and Lib Forward Cannon code...*nods*)

www.hotwire-studios.co.nr

then move to forums..lets open a comm channel

Edited by - hotwire on 12/12/2006 3:21:25 AM

Edited by - hotwire on 12/12/2006 3:24:41 AM

Post Tue Dec 12, 2006 4:23 am

strictly speaking if theres some way to delay the release of a projectile without messing with projectile speed once its left the muzzle, it would be possible as the gun sound would play the moment you press fire, like a charging sound, I actually would like something similiar for my mod.

Post Tue Dec 19, 2006 5:33 am

I had an idea for a "PlasMass" turret for a battleship. After completing the building details and testing it in game, I was wondering how to give it certain "FX" that would make it look like it was charging up just before it fired.
One option I envisioned was the cruise engine charge up effects (cruise_start) of a fighter. Then followed by the shooting plasma ball effects of the britonia main gun.
I haven't tried this yet, but thought it could be possible by declaring those effects in a particular ini. and perhaps renaming them.
The cruise startup fx for most fighters takes 5 seconds to "charge up".
I'm guessing there is a way to delay the initial shot by 5 seconds before it fires.

Post Tue Dec 19, 2006 9:57 am

maybe wing a piece of code and add

weapon_charge_time = 5

?

Cheese On Toast:
Like the name
Beware the player

Post Wed Dec 20, 2006 1:34 pm

hm.. maybe you can make use of the motor delay here.
oh and, what about lightanim.ini in Data\FX directory?

just trying to help.

Post Wed Dec 20, 2006 4:39 pm

Seems like a very plausible idea. The only thing I can think of that we'd have to work around is the initial shot that's usual with firing a gun at the press of the mouse button.
The charge up would have to come first, but how it would be declared in it's own ini might be in reverse. Just a guess here.

Post Thu Dec 21, 2006 3:29 am

i was thinking..
maybe make a new flash effect that would last as long as the motor delay.
so what you get on trigger, is the charge effect AND the bullet -but once the charge effect is over, the "sitting" bullet would make its way..
hopefully, lol

edit: typos

Edited by - RimShot on 12/21/2006 3:31:17 AM

Post Thu Dec 21, 2006 11:54 am

@ Rimshot
That's an interesting idea. What fx do you think would be a good indicator for a gun charging up?

Post Thu Dec 21, 2006 1:25 pm

the rippermine, it appears slowly, well anymine for that matter

www.mod.pff-clan.us
[imghttp://img488.imageshack.us/img488/1553/cheeseontoastsigmn1.png[/img

Post Thu Dec 21, 2006 8:56 pm

@ cheese
Do you mean the "pulsing" effect this mine has for a few seconds before it blows? Cool effect that one is.

Post Sun Dec 24, 2006 4:51 pm

maybe also have a multifire missile with the const effect of a gun and edit the 1st shots motor and lifetime so it just fizzes up like a charge, and the 2nd motor with a delay on it...

little simplistic explaination but the concept is what counts lol

Return to Freelancer General Editing Forum