Log in to reply
 

[SCRIPT] [PLAYER] Bulletproof-mod.



  • Hey, I wonder if its hard to create a script/mod to have the character deflect bullets? With this I mean that the bullets would bounce off after hitting the player. Like you'd shoot a armored car.



  • Would be cool



  • This is an awesome idea hopefully it would come to life soon.


  • MODERATOR

    The Superman mod by JulioNIB has this feature iirc. Maybe someone can figure out how it is done.



  • @ragemete @stillhere Are props (some kitchen metal objects not keeps visual impact holes) with metal collider attached to the ped body and was set the alpha to 0 || entity.isVisible = false; . Is the same method with Hulkbuster and Ironman MarkIII armors. Just exists an issue, the props attached to torso and pelvis covers the root and chest bones (visibility in them is essential to be detected by other peds), obstructing visual range of cops and enemies and they can't see the player. That needs extra scripting to make cops/enemies to detect the player position and shoot him.


  • MODERATOR

    @Rarefacer I thought so, I ran into the same issue with invisible shields covering the shield weapon in the Captain America mod. I didn't know which bones were essential though. Is there perhaps a model flag that can make a prop be recognized as see-through?



  • @stillhere Well, I not tested too much this feature and I not founded any function/flag to allow see-through solid collisions. Maybe can be created a prop with see-through mixed with bullet proof features using any glass collision.



  • hopefully, someone actually makes this... it annoys me when i put on a ped that has armor and blood comes out lol



  • @ismailmoustafa0802 SWAT ped can resists more damage on his torso and offer a FX bullet proof effect. If the modder just creates peds with armor vests and not apply this feature, is just a half mod, not funny, not finished, not worths for a belical experience.



  • Shameless bump. I need this, we need this



  • This is the code that the superman mod used,I got it from julionib

    something like that (need to be called in a tick)

    Dim tmpBone As Bone
    Dim tmpRes As Native.OutputArgument = New Native.OutputArgument

            If Native.Function.Call(Of Boolean)(Native.Hash.GET_PED_LAST_DAMAGE_BONE, user, tmpRes) Then
                Native.Function.Call(Native.Hash.REMOVE_PARTICLE_FX_FROM_ENTITY, user)
    
                tmpBone = tmpRes.GetResult(Of Integer)()
    
                If TRandom.NextDouble < 0.5 Then
                    THelper.ptfx_triggerOnEntity(user, "ent_dst_concrete_large", "core", Vector3.Zero, Vector3.Zero, 0.0001)
                Else
                    THelper.ptfx_triggerOnEntity(user, "ent_brk_concrete", "core", Vector3.Zero, Vector3.Zero, 0.0001)
                End If
    
                THelper.ptfx_triggerOnPedBone(user, tmpBone, "cs_trev1_lighter_sparks", "cut_jh_trev", Vector3.Zero, New Vector3(TRandom.Next(0, 90), 0, TRandom.Next(0, 90)), 1.5 + TRandom.NextDouble * 0.5)
    
                Native.Function.Call(Native.Hash.CLEAR_PED_LAST_DAMAGE_BONE, user)
            End If


  • @Nanland Is this ethical? You decompiled and publish without authorization the job from other modder.



  • @Rarefacer Nope,he gave it to me,we talked by gmail.



  • @Nanland That is weird, JulioNIB don't use gmail for contact (I worked with him in projects since 2012 and right now I'm in one with him), but is ok.



  • @Rarefacer his email is gtaivscripting@gmail.com, just ask.



  • @Nanland Relax, is his google circles. For bullet proof like an armor vest, that can be done in the ped convertion without scripting. For bullet deflect, exists functions to take the normals on a surface and use it as direction for a new shoot, in that way, can be recreated a bullet deflect effect combining with a get damaged bone by bullet method.



  • so can this be done please???



  • @ismailmoustafa0802 I think so,but,I do not have time.so maybe someone can do it.



  • Do you have any idea?@stillhere


  • MODERATOR

    @Nanland @Rarefacer explains it, though I don't know how to get the surface normal of a bullet hit. Doing it that way could result in a really authentic deflection



  • @stillhere I am looking forward to your good news,or mods.😊


Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.