Author Topic: arm  (Read 1941 times)

Maximom

  • Newbie
  • *
  • Posts: 31
  • Karma: +5/-6
  • C.R.C colonel
    • View Profile
arm
« on: June 04, 2013, 05:34:54 pm »
hi when i shot players arm its falled how i can do that? help ?
« Last Edit: June 16, 2013, 01:02:44 am by SugarD »
C.r.c member

SugarD

  • Argonath RPG Dev/Manager
  • Tester
  • Sr. Member
  • ****
  • Posts: 820
  • Karma: +37/-75
  • STOP IN THE NAME OF THE COLESLAW!
    • View Profile
    • Clan Xperience
Re: arm
« Reply #1 on: June 16, 2013, 01:02:36 am »
hi when i shot players arm its falled how i can do that? help ?
What do you mean by "its falled"?

Shadow.

  • Tester
  • Full Member
  • ****
  • Posts: 144
  • Karma: +16/-35
    • View Profile
Re: arm
« Reply #2 on: June 16, 2013, 09:35:42 am »
SugarD, I think he meant ' it falls ', anyway, you will have to use the .RemoveLimb function.

Maximom

  • Newbie
  • *
  • Posts: 31
  • Karma: +5/-6
  • C.R.C colonel
    • View Profile
Re: arm
« Reply #3 on: July 31, 2013, 06:32:07 pm »
i cant find .removelimb function
C.r.c member

Ahmed Abouelnas

  • Newbie
  • *
  • Posts: 39
  • Karma: +2/-11
  • Ahmed Abouelnas
    • View Profile
Re: arm
« Reply #4 on: July 31, 2013, 07:30:15 pm »
See There ARE Left Arm And Right Arm
if left arm here is its script

Code: [Select]
g_LocalPlayer <- FindLocalPlayer();

function onClientShot( pPlayer, iWeapon, iBodypart )
{
if ( ( iBodypart == BODYPART_LEFTARM ) && ( iWeapon > 3 ) )
{
g_LocalPlayer.RemoveLimb( BODYPART_LEFTARM );
g_LocalPlayer.Health = 1;
}

return 1;
}

function onClientKill( pPlayer, iWeapon, iBodypart )
{
if ( ( iBodypart == BODYPART_LEFTARM ) && ( iWeapon > 3 ) )
{
BigMessage( "~r~LEFTARMSHOT", 3000, 3 );
}

return 1;
}

function onClientDeath( pKiller, iWeapon, iBodypart )
{
if ( pKiller )
{
if ( ( iBodypart == BODYPART_LEFTARM ) && ( iWeapon > 3 ) )
{
BigMessage( "~r~LEFTARMSHOT", 3000, 3 );
}
}

return 1;
}

if right arm

Code: [Select]
g_LocalPlayer <- FindLocalPlayer();

function onClientShot( pPlayer, iWeapon, iBodypart )
{
if ( ( iBodypart == BODYPART_RIGHTARM ) && ( iWeapon > 3 ) )
{
g_LocalPlayer.RemoveLimb( BODYPART_RIGHTARM );
g_LocalPlayer.Health = 1;
}

return 1;
}

function onClientKill( pPlayer, iWeapon, iBodypart )
{
if ( ( iBodypart == BODYPART_RIGHTARM ) && ( iWeapon > 3 ) )
{
BigMessage( "~r~RIGHTARMSHOT", 3000, 3 );
}

return 1;
}

function onClientDeath( pKiller, iWeapon, iBodypart )
{
if ( pKiller )
{
if ( ( iBodypart == BODYPART_RIGHTARM ) && ( iWeapon > 3 ) )
{
BigMessage( "~r~RIGHTARMSHOT", 3000, 3 );
}
}

return 1;
}

this is most likely to be as headshot.......
if you want it only falls without die
then this for left

Code: [Select]
g_LocalPlayer <- FindLocalPlayer();

function onClientShot( pPlayer, iWeapon, iBodypart )
{
if ( ( iBodypart == BODYPART_LEFTARM ) && ( iWeapon > 3 ) )
{
g_LocalPlayer.RemoveLimb( BODYPART_LEFTARM );
}

return 1;
}

and this for right

Code: [Select]
g_LocalPlayer <- FindLocalPlayer();

function onClientShot( pPlayer, iWeapon, iBodypart )
{
if ( ( iBodypart == BODYPART_RIGHTARM ) && ( iWeapon > 3 ) )
{
g_LocalPlayer.RemoveLimb( BODYPART_RIGHTARM );
}

return 1;
}

sorry for my bad english....
« Last Edit: September 18, 2013, 09:32:02 am by Ahmed Abulnass »

Mido_Pop

  • Full Member
  • ***
  • Posts: 168
  • Karma: +6/-20
  • The_Pops ( War )
    • View Profile
Re: arm
« Reply #5 on: July 31, 2013, 11:03:15 pm »
Man Try This >>  8)
Code: [Select]
g_LocalPlayer <- FindLocalPlayer();

function onClientShot( pPlayer, iWeapon, iBodypart )
{
if ( g_LocalPlayer.Immune == false )
{
        g_LocalPlayer.RemoveLimb( BODYPART_LEFTARM );
g_LocalPlayer.RemoveLimb( BODYPART_RIGHTARM );
        g_LocalPlayer.RemoveLimb( BODYPART_LEFTLEG );
        g_LocalPlayer.RemoveLimb( BODYPART_RIGHTLEG );
}

return 1;
}
You Can make
Code: [Select]
g_LocalPlayer.Immune == false True.



Maximom

  • Newbie
  • *
  • Posts: 31
  • Karma: +5/-6
  • C.R.C colonel
    • View Profile
Re: arm
« Reply #6 on: August 01, 2013, 12:58:00 pm »
thank you all
C.r.c member

 

© Liberty Unleashed Team.