[Coding] Small changes to aircraft private patch by CAS_117 & killerzangoo

Making or wanting help making your own asset? Check in here
Post Reply
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Post by Rhino »

zangoo wrote:why, would it not work. it is really just the soflam shooting a bullet like any other gun, and bullets on dedicated servers draw effects so i dont see why it would not draw a effect with a laser target on it, unless laser target does not work on effects in a dedicated server, but it works on tanks and everything else. please explain i would really like to learn how i messed up.
just try it....
Image
CAS_117
Posts: 1600
Joined: 2007-03-26 18:01

Post by CAS_117 »

*bump so I'll get back to work.
dbzao
Retired PR Developer
Posts: 9381
Joined: 2006-06-08 19:13

Post by dbzao »

Use 0.7 files please ;)
zangoo
Posts: 978
Joined: 2007-09-01 03:42

Post by zangoo »

ok so me and cas have started again, we are going to add a batch size to the black hawk gun to get a fire rate above 1800, we are also doing this from some other planes like the a10, f16, ect. i have also finished my effect for the guided bomb. me and cas should have a video out soon. i am also finishing a bomb vest for the insurgent part of this mod.
=Romagnolo=
Posts: 4765
Joined: 2006-12-29 14:52

Post by =Romagnolo= »

zangoo, you have my xfire ;-)
[R-DEV]OkitaMakoto:"Cheers, you're the man, Okita"
[R-DEV]Rhino:"I in fact got kicked from a server for tking."
Hitperson:"well done, treasure it forever."
[R-DEV]Adriaan:"Damned classy Roma, if I may say so."
[R-DEV]Chuc:"Pro man, pro."
(yes, it was about me)
[R-MOD]BloodBane611:"Romagnolo, you definitely deserve a LOL award for that."
Sabre_tooth_tigger
Posts: 1922
Joined: 2007-06-01 20:14

Post by Sabre_tooth_tigger »

I've noticed in 0.7 that AA rockets will shoot down the littlebirds. They dont ever hit but the proximity damage kills them, fire in the general direction and it kills quite easily

http://i32.tinypic.com/24meqa9.jpg
zangoo
Posts: 978
Joined: 2007-09-01 03:42

Post by zangoo »

well the rockets need to detonate like that if you want the missile to kill the plane, if i remember correctly cas said with a 100ms ping the plane would be 100m from where you see it or something like that and so he gave it a 100m radius so it could kill the plane without having to hit it, cus that almost never happens.


also cas has been working on the planes, giving them many little interesting new things, but it looks like the planes are some what hard coded, he said to me that he removed all wing lift and the plane still would take off and fly, so there is somefile that is setting lift, drag and other values. it kinda looks like the planes wont be getting too much better untill we get our hands on the source code for the refractor 2 engine.
Sabre_tooth_tigger
Posts: 1922
Joined: 2007-06-01 20:14

Post by Sabre_tooth_tigger »

I was just surprised that it detonates even with no lock being present. It doesnt do that on the ground
MAINERROR
Retired PR Developer
Posts: 1873
Joined: 2007-07-22 17:54

Post by MAINERROR »

Thats normal that the rocket explodes even without to lock on cause thats what the do also in reality! They will destroy themselves without a target. :wink:
Sabre_tooth_tigger
Posts: 1922
Joined: 2007-06-01 20:14

Post by Sabre_tooth_tigger »

The rocket is exploding with the target though, I dont think they have a timed self destruct in the game.
If its intentional then fair enough. I cant record any videos to show it at the moment or I would
Last edited by Sabre_tooth_tigger on 2008-02-23 14:29, edited 1 time in total.
MAINERROR
Retired PR Developer
Posts: 1873
Joined: 2007-07-22 17:54

Post by MAINERROR »

No I mean the real rockets. :grin:
Eddiereyes909
Posts: 3961
Joined: 2007-06-18 07:17

Post by Eddiereyes909 »

anything going on with this since .7
"You know we've had to imagine the war here, and we have imagined that it was being fought by aging men like ourselves. We had forgotten that wars were fought by babies. When I saw those freshly shaved faces, it was a shock "My God, my God?" I said to myself. "It's the Children's Crusade."- Kurt Vonnegut, Slaughter House Five
zangoo
Posts: 978
Joined: 2007-09-01 03:42

Post by zangoo »

i was talking to clivewil and he is a dev for the aix mod, now i have suggested using a effect with a laser target for the soflam, but the devs have said that it is not possible, yet it is used in the aix mod. i am just wondering if we could do the same thing as the aix mod, it would make the soflam more realistic and also allow people to lase targets easyer at longer distances due to the increased projectile speed. this would also make it easyer for pilots as right now if someone keeps shooting the soflam the pilot will see flying boxes. now if this was implemented into pr it would be as simple as point and hold.
bosco_
Retired PR Developer
Posts: 14620
Joined: 2006-12-17 19:04

Post by bosco_ »

Isn't AIX single-player? I've heard that things work different there.
Image
zangoo
Posts: 978
Joined: 2007-09-01 03:42

Post by zangoo »

i asked clivewil and he said it was working on a dedicated server.
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Post by Rhino »

well in r/l its not point and hold according to our MIs.

I dont see how it can be done using a effect but have a go at all means.
Image
zangoo
Posts: 978
Joined: 2007-09-01 03:42

Post by zangoo »

ok if you want to do it by effect you

1)make the simrad shoot a bullet at 2000m/sec(engine max speed is about 1320m/sec from my tests)

2)give the soflam a rof of about 600 and make it full auto

3)add this to the projectile code

rem ---BeginComp :D efaultDetonationComp 762 ---
ObjectTemplate.createComponent DefaultDetonationComp
ObjectTemplate.detonation.detonateOnWaterCollision 1
ObjectTemplate.detonation.endEffectTemplate e_exp_lasertarget
ObjectTemplate.detonation.explosionMaterial 0
ObjectTemplate.detonation.explosionRadius 0
ObjectTemplate.detonation.explosionForce 0
ObjectTemplate.detonation.explosionDamage 0
ObjectTemplate.detonation.detectionRadius 0
rem ---EndComp ---

this will allow the projectile to use a set effect on impact.


4)make the material for everything 0

5)make a effect with nothing on it, like this one

rem *** Generated with Bf2Editor.exe [created: 2005/3/24 14:57]
ObjectTemplate.activeSafe EffectBundle e_exp_lasertarget
ObjectTemplate.modifiedByUser killer_zangoo
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.createdInEditor 1
ObjectTemplate.floaterMod 0
ObjectTemplate.hasMobilePhysics 0
rem -------------------------------------
ObjectTemplate.addTemplate LaserTarget_vehicle
rem -------------------------------------
ObjectTemplate.setStartOnEffects 0
ObjectTemplate.setStopOnEffects 0
ObjectTemplate.timeToLive CRD_NONE/0.1/0/0
ObjectTemplate.randomAgeFactor CRD_NONE/0/0/0
ObjectTemplate.startAtCreation 0
ObjectTemplate.speedFromPhysics 1


now the soflam will shoot a projectile every 0.1sec, and the effect will only last for 0.1 sec , so by the time the next projectile hits the other effect is gone, so there will only be one laser target.
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Post by Rhino »

ah i see, sounds like it might work but need to check with the coders :)
Image
zangoo
Posts: 978
Joined: 2007-09-01 03:42

Post by zangoo »

you can also emit the target object, i have tried it and it would only emit to about 300m, but i asked satnav and he said it was emiting at any distance, so i think i did something wrong with the code.
Post Reply

Return to “PR:BF2 Community Modding”