Thread: Fire Message

Page 1 of 2 12 LastLast
Results 1 to 15 of 27
  1. #1
    mmbob's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    ja
    Posts
    655
    Reputation
    70
    Thanks
    1,156
    My Mood
    Bitchy

    Fire Message

    After a few hours of work, I have decoded all of CA's "shoot a bullet" message.

    Code:
    // Fires your gun
    // uint8:Unk - Always 0
    // uint16:nWeaponID - ID of current weapon
    // uint16:nAmmoAmount - Client-side ammo amount XOR current weapon ID
    // uint32:nFireTicks - Current client-side tick count
    // LTVector:vWeaponPos - (x, y, z) of weapon in world space
    // LTVector:vFirePos - (x, y, z) of start point of firing (usually the camera)
    // LTRotation:rFireDir - Direction of bullet (in rotation form)
    // float:fPlayerYaw - Yaw of client player
    // LTVector:vFireDir - Direction of bullet (in vector form)
    // uint8:nChecksum - Not sure, some kind of validation value I think
    // bool:bIsScopedOrScoping - Is the player scoped or scoping in/out
    // bool:Unk - Always false
    // bool:bLastShotAltFire - Was alternate fire used for the previous shot?
    // uint8:nPerturb - Random distance from center that bullet hits
    // float:fMultiplier - Multiplier of something
    // uint32:nFireTime - Fire time (nearest second)
    // bool:bPlayerHit - Was a player hit
    // if (bPlayerHit) {
    //// HOBJECT:hHitPlayerObj - Object of hit player
    //// HMODELNODE:hHitNode - Node that was hit
    //// LTVector:vHitPos - (x, y, z) of position that was hit
    //// LTVector:vDirection - Direction the player is in relative to you.  Only -1, 0, 1 allowed for each direction
    // }
    // bool:Unk - Always 0 I think
    // bool:bAltFire - Was alternate fire used
    // bool:bObjectHit - Was an object hit
    // float:fDist - Distance to object
    // HOBJECT:hHitObj - Object that was hit
    // uint32:nShotCounter - Odd value, not sure what it's meant for
    Send a message to the server with the correct message ID and with all that filled out and you can do whatever the hell you want .

    There may be a few minor mistakes


    Oh and credits to CodeDemon
    Last edited by mmbob; 03-13-2011 at 07:15 PM.

  2. The Following 12 Users Say Thank You to mmbob For This Useful Post:

    [MPGH]AVGN (03-13-2011),CodeDemon (03-13-2011),[MPGH]Flengo (03-14-2011),leoisso (03-14-2011),markoj (03-13-2011),matypatty (03-15-2011),NOOB (03-13-2011),NOOBJr (03-14-2011),PashaAmd (03-13-2011),S0aD (03-14-2011),SNal2F (03-14-2011),whit (03-13-2011)

  3. #2
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,170
    Reputation
    490
    Thanks
    2,252
    Nice release...
    Wish i knew what half this shit is

  4. #3
    AVGN's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Making America Great Again.
    Posts
    15,451
    Reputation
    1549
    Thanks
    6,234
    EPIC .



    ^Thanks to RJ^




  5. #4
    PashaAmd's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    1,014
    Reputation
    58
    Thanks
    224
    Could you make like (an idea not sure if it'll even work) like a sort of god mode with this peice of code:
    Code:
    bool:bPlayerHit - Was a player hit
    // if (bPlayerHit) {
    //// HOBJECT:hHitPlayerObj - Object of hit player
    //// HMODELNODE:hHitNode - Node that was hit
    //// LTVector:vHitPos - (x, y, z) of position that was hit
    //// LTVector:vDirection - Direction the player is in relative to you.  Only -1, 0, 1 allowed for each direction
    // }
    and keep it to false for your player at all times?

  6. #5
    Margherita's Avatar
    Join Date
    Jan 2011
    Gender
    female
    Posts
    11,306
    Reputation
    783
    Thanks
    1,282
    My Mood
    Bashful
    Looks cool, now what to do with this
    PM Me | VM Me | Rules

    MARGHERITA

  7. #6
    mmbob's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    ja
    Posts
    655
    Reputation
    70
    Thanks
    1,156
    My Mood
    Bitchy
    Quote Originally Posted by PashaAmd View Post
    Could you make like (an idea not sure if it'll even work) like a sort of god mode with this peice of code:
    Code:
    bool:bPlayerHit - Was a player hit
    // if (bPlayerHit) {
    //// HOBJECT:hHitPlayerObj - Object of hit player
    //// HMODELNODE:hHitNode - Node that was hit
    //// LTVector:vHitPos - (x, y, z) of position that was hit
    //// LTVector:vDirection - Direction the player is in relative to you.  Only -1, 0, 1 allowed for each direction
    // }
    and keep it to false for your player at all times?
    Each client sends it. And you can't change what other clients do. So no.

  8. The Following User Says Thank You to mmbob For This Useful Post:

    [MPGH]AVGN (03-13-2011)

  9. #7
    PashaAmd's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    1,014
    Reputation
    58
    Thanks
    224
    Quote Originally Posted by mmbob View Post
    Each client sends it. And you can't change what other clients do. So no.
    oh ok thanks

  10. #8
    CodeDemon's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    vagina
    Posts
    1,074
    Reputation
    50
    Thanks
    936
    My Mood
    Fine
    Nice work bob
    Last edited by CodeDemon; 03-13-2011 at 07:13 PM.

  11. #9
    CAFlames's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Where ever my imagination takes me
    Posts
    3,014
    Reputation
    202
    Thanks
    2,934
    My Mood
    Twisted
    Quote Originally Posted by CodeDemon View Post
    Nice work bob
    Are these classes or what?

    Current Works:
    ---Horror Game






    Special thanks to drgnforce9 for my sig picture

    Quote Originally Posted by m_t_h View Post

    CAflames is one epic coder.

    Rep and thanks him.. or you're perma banned.

  12. #10
    Sid's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    New York
    Posts
    10,714
    Reputation
    927
    Thanks
    1,265
    Nice work
    Nao to find out what these are

  13. #11
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    North of Hell, South of Heaven
    Posts
    6,067
    Reputation
    323
    Thanks
    3,323
    My Mood
    Doh
    could you use this with the weapon ID to see what a gun is on ground if you like point at it with crosshair? that'd be slick

    and i think shotcounter is for something called Deflection (probably mistaken but...) in almost all the Lithtech games so far, there is a frame string you can type in on Model Edit keyframes to deflect objects (bullets, nades, knives, etc.) and not get damage from it. I don't think deflect is in the framestrings for CA but if it is, its some how disabled

    commando: You're probably the best non-coder coder I know LOL


  14. #12
    markoj's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    s
    Posts
    1,067
    Reputation
    60
    Thanks
    407
    My Mood
    Bored
    Quote Originally Posted by CodeDemon View Post
    Nice work bob
    Who unbanned you?
    Quote Originally Posted by supercarz1991 View Post
    could you use this with the weapon ID to see what a gun is on ground if you like point at it with crosshair? that'd be slick
    Looks like it can be used for a lot; Weapon esp, rapid fire, Distance/direction warning....
    Dont ban me

  15. #13
    wolffang0000's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    here
    Posts
    597
    Reputation
    1
    Thanks
    165
    My Mood
    Relaxed
    Quote Originally Posted by mmbob View Post
    Each client sends it. And you can't change what other clients do. So no.
    possible

  16. #14
    CodeDemon's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    vagina
    Posts
    1,074
    Reputation
    50
    Thanks
    936
    My Mood
    Fine
    Quote Originally Posted by supercarz1991 View Post
    could you use this with the weapon ID to see what a gun is on ground if you like point at it with crosshair? that'd be slick
    There is a TargetMGR class that's responsible for that.

    Quote Originally Posted by markoj View Post
    Who unbanned you?
    My 3 weeks expired yesterday
    Last edited by CodeDemon; 03-14-2011 at 01:00 PM.

  17. #15
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    North of Hell, South of Heaven
    Posts
    6,067
    Reputation
    323
    Thanks
    3,323
    My Mood
    Doh
    Quote Originally Posted by CodeDemon View Post
    There is a TargetMGR class that's responsible for that.
    of course there is >.> lol

    commando: You're probably the best non-coder coder I know LOL


Page 1 of 2 12 LastLast