Results 1 to 10 of 10

Thread: Target shooting entity and a q | Forums

  1. #1
    I'm working on an entity that can be used as a shooting target. It detects where the bullet hits and calculates points and number of shots and show it in the HUD. It's the circular one to the right in the pic. The builtin w body is a little more tricky to calculate hits for.





    I have other types of entities in the works. One is a water system with tanks and pipes and water flowing in them in realtime giving all sorts of events. I think it can be useful for controlling events on maps. Still have some problems with the logic in that one though.

    Now I start to wonder how to distribute them. Is there a better way than making them a mod? I mean a mod seems to take over all of the game once activated. The same with a scripts#.pak. I'd like to see a way where individual entities can be added more freely. Perhaps on a per map basis. Is it possible to have more than one ClassRegistry.lua at a time? If not, I'm thinking about a tool that finds all current entities installed and then creates a new ClassRegistry.lua for the session.
    Reply With Quote Reply With Quote

  2. #2
    I'm working on an entity that can be used as a shooting target. It detects where the bullet hits and calculates points and number of shots and show it in the HUD. It's the circular one to the right in the pic. The builtin w body is a little more tricky to calculate hits for.





    I have other types of entities in the works. One is a water system with tanks and pipes and water flowing in them in realtime giving all sorts of events. I think it can be useful for controlling events on maps. Still have some problems with the logic in that one though.

    Now I start to wonder how to distribute them. Is there a better way than making them a mod? I mean a mod seems to take over all of the game once activated. The same with a scripts#.pak. I'd like to see a way where individual entities can be added more freely. Perhaps on a per map basis. Is it possible to have more than one ClassRegistry.lua at a time? If not, I'm thinking about a tool that finds all current entities installed and then creates a new ClassRegistry.lua for the session.
    Reply With Quote Reply With Quote

  3. #3
    i would love to have that target thingy majigger, that would be soo col for me to practice my shots with no scope sniper rifle... gonna put it up for DL ^_^

    ---
    Sex on the T.V. can't hurt... unless you fall off
    ----

    Sex on the T.V. can't hurt... unless you fall off

    Reply With Quote Reply With Quote

  4. #4
    Ok, here it is, as a scripts#.pak file. Perfect for trying out new or modded firearms at long range. Let me know of any improvements to it.

    I've included a texture file that needs to be attached to it. It's in the readme how to do.

    Note that for some strange reason it doesn't work ingame without running in devmode. Any explanation to that is appreciated

    http://w1.312.telia.com/~u31225218/f...arget_beta.zip
    Reply With Quote Reply With Quote

  5. #5
    That's awesome. Is it possible to apply that to Mercs? It would be cool to have a live target

    jinker.org
    Reply With Quote Reply With Quote

  6. #6
    No I don't think it's possible to use animated meshes if that's what you mean, at least not easily. The calculation of the hit I did is assuming the mesh itself is fixed. On the target mesh I just specified were the center is and the radius of the circle.

    Still, hit locations are very sophisticated in Far Cry I've found. Not only the exact location is given for each shot but also the angle of impact, force, material type and more. With more advanced calculations I guess it can be used to create very realistic hit locations on bodies and vehicles. Here's the info provided for each bullet hit:

    target_material
    damage_type
    target_id
    objtype
    damage
    normal
    ipart
    dir
    target
    play_mat_sound
    shooter
    impact_force_mul_final
    impact_force_mul_final_torso
    impact_force_mul
    weapon
    weapon_death_anim_id
    pos

    I was using just pos for my entity.
    Reply With Quote Reply With Quote

  7. #7
    if you want i have a mod that is about to go under if youd like to help

    btw really nice work, how do you do it?
    Reply With Quote Reply With Quote

  8. #8
    too bad it is impossible to get it into a level i wish it would work, cant give the damn thing a ****ing texture

    ---
    Sex on the T.V. can't hurt... unless you fall off
    ----

    Sex on the T.V. can't hurt... unless you fall off

    Reply With Quote Reply With Quote

  9. #9
    at least u can still get shooting ranges!
    Reply With Quote Reply With Quote

  10. #10
    Nice

    I'm sure someone will create a 'severed' mod where you can shoot off limbs, hats, sunglasses.. maybe even fingers. lol.
    Reply With Quote Reply With Quote

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •