Jump to content

icarusuk

Member
  • Content Count

    28
  • Joined

  • Last visited

  • Medals

Community Reputation

0 Neutral

About icarusuk

  • Rank
    Private First Class
  1. icarusuk

    Calculating air resistance

    Ahh yes, rubbing. Makes some nifty smoke effects I sent Suma a PM asking if its possible to let us in on the proper model that they used, Im not expecting a reply, but at least I tried.
  2. icarusuk

    Calculating air resistance

    LoL thats some funky graph doodles, done in MSPaint?  Hehehe. My full script (thats over 4 pages long so itsnt posed here) can accurately aim at a moving target or group.  It adjusts for launcher / target height (not with the pathetic select 2 rubbish, but using ASLheight).  And it works really well.  If only for this drag thing it would be finished. Id rather not drop bombs straight, with my script you can see and hear them coming, it looks quite stunning indeed  Esspecially with smoke munitions leaving an arc of green smoke in the sky Incidently, the script can be altered through parsing a variable that alters the time of flight. A longer time gives a high arc, which I small time gives a much shallower arc. Will working out the time of flight and adjusting work?
  3. icarusuk

    Calculating air resistance

    Ok, so when my brain dribbled out of my ear, that was a bad thing right? Errr,sodding heck. You know how there are loads of arty scripts around? How do they combat drag?
  4. icarusuk

    Calculating air resistance

    I was hoping someone would
  5. icarusuk

    Calculating air resistance

    Ok, so where can I get my hands on one of these nural networks then? You mentioned a CoC one, but said you needed to write more documentation for it, I took that to mean its not released yet.
  6. icarusuk

    Calculating air resistance

    Its possiby what I want, I just dont know why I want it! Â Though I dont want to predict the landing position, tell it where to land and thus calculate the velocity. Anyway. Â 1st year aerodynamics tells me that; DragForce = 0.5 * p(rho) * V^2 * S * Cd (I knew there was a point in going to university) With some expoerimentation I can get the Coeffecient of drag for a shell (Cd) and the surface area (S). Â But I think what I need to do is make some simultaneous equations that will work out it all out. For example my current script looks like this; --------------------------------- ;Calculate the required velocities using the dynamics equation : u = (s - 0.5 * a * t^2) / t ;This gives a value of V that is perfect for an enviroment with no drag, which is obviously not the enviroment OFP models. _XvelocityPerfect = _Xdistance/_FlightTime _ZVelocityPerfect = _Zdistance/_FlightTime _YvelocityPerfect = (_Ydistance - (0.5*(-9.81)*(_FlightTime^2))) / _FlightTime ;Flashpoint models drag. Â Unfortunately dynamically calculating drag is a right pain, so I use a half arsed model and hope ;for the best. ;D= 0.5 * p * V^2 * S * Cd _SurfaceArea = 0.01 _DragCoeff = 0.4 _density = 1.225 _XDragForce = 0.5 * _density * (_XvelocityPerfect^2) * _SurfaceArea * _DragCoeff _ZDragForce = 0.5 * _density * (_ZvelocityPerfect^2) * _SurfaceArea * _DragCoeff _YDragForce = 0.5 * _density * (_YvelocityPerfect^2) * _SurfaceArea * _DragCoeff ;Its not the best way of doing it, but now the velocity is adjusted for drag _Xvelocity = (_Xdistance - (0.5*(+_Xdragforce)*(_FlightTime^2))) / _FlightTime _Zvelocity = (_Zdistance - (0.5*(+_Zdragforce)*(_FlightTime^2))) / _FlightTime _Yvelocity = (_Ydistance - (0.5*(-9.81 + _YDragForce)*(_FlightTime^2))) / _FlightTime ;Create the first mortar round slightly above the launcher. _shell1 = _shelltype Camcreate [Getpos _Launcher Select 0, Getpos _Launcher Select 1, (Getpos _Launcher Select 2)+1] ;Give the Shell the correct velocity _Shell1 SetVelocity [ _Xvelocity , _ZVelocity , _YVelocity ]; ------------------------------------------ Now hopefully you can see what Ive done there. Â I work out what I call a perfect velocity (no drag), then using that drag force I work out the velocities again with the same equation and get a value of V that is adjusted for drag. I know its a very shoddy way around it, it doesnt adjust the drag force for the variable velocity through the arc, but its the start of somthing. This way round however, at "runway length" the shells are near perfect, however the shorter the range between target and launcher the more the shell drops short. Any ideas without huge differential equations I dont understand?
  7. icarusuk

    Calculating air resistance

    Hmmm, Im all confused as to why I need to know the final velocity and position the shell lands.
  8. icarusuk

    Calculating air resistance

    And why do I care about the height of my projectile at any given time?
  9. icarusuk

    Calculating air resistance

    Sorry to be a pain, but I need a little more help on this. I understand I have to use the Kutta method to differentiate, but Im not really sure what I have to differentiate and what Im trying to find as a result. ds^2/dt^2 = -g + k(ds/dt)^2/m -g is the acceleration due to gravity yes? K is the drag coefficient ds/dt is the change in displacement over time (which is squared) m is the mass ? So whats my end result wanting to be? I assume I want some kind of function out of the other end but Im unsure as to what exactly Im trying to get, and how to get it.
  10. icarusuk

    Calculating air resistance

    Im assuming K is a constant? What might it be?
  11. icarusuk

    Calculating air resistance

    does ofp scripting do differentials??
  12. Ok Ive run into some problems with my arty script. Â I have it all mathmatically setup for perfect conditions, however when I give a projectile and ideal velocity, it falls short, because of drag! How can I find out the effects of drag, so i know what velocity I really need to use to get a projectile to land exactly on a specified target?
  13. icarusuk

    Animated weapons?!?

    Tomboy, why not tell everyone my plan?
  14. icarusuk

    Drop

    Hi all. Ive had no luck so far with the drop command for Resistance. What Im trying to make is a fake tracer effect, a script that will send out green, orange or white tracers from a speified point out in a specified direction. So far all Ive come up with is errors. I dont have a workable example of the drop command that is self containted. All examples I have require other scripts to run and and pass variables to another final script, that then uses large amounts of _local variables and its near impossible to follow. Im hoping someone out there can point me in the direction of a drop tutorial, an example of drop that doesnt require a 1000 other variables to be passed to it, or in a best case, someone to make me a fake tracers script. Any suggestions?
  15. icarusuk

    Texture name

    I dont fancy spending alot of time making a camo netting texture when BIS have one for their models... sooooo Whats the texture name of the BIS camo netting? Im guessing its in the data pbo right?
×