Bully-Board

Bully Modding Section => Bully Modding => Bully Modding Archives => Topic started by: davis42 on August 24, 2013, 04:18:24 PM

Title: Jimmy with new bullying techniques.
Post by: davis42 on August 24, 2013, 04:18:24 PM
I'd like to see jimmy with some of the techniques which only npc's can humiliate with. For an example, the head rubbing and maybe 2 more.
Title: Re: Jimmy with new bullying techniques.
Post by: deadpoolXYZ on August 24, 2013, 04:38:03 PM
I have the animations but I don't know if they are considered as "fighting animations", since Rise to Honor doesn't want anyone to share them.

By the way when you activate them, the ped you were locking will humilliate you, not you to him.
Title: Re: Jimmy with new bullying techniques.
Post by: davis42 on August 25, 2013, 04:53:21 AM
He might make a mod for them later or something, just guessing. Btw that's crazy because the ped will do it to you? Unbelievable! Thanks a ton for the info.
Title: Re: Jimmy with new bullying techniques.
Post by: c00ld0c26 on August 25, 2013, 06:09:05 AM
Well, action nodes can be used but as u said the Ped will be the humiliator, hmmm, there might be a way around this but I got no clue.
Title: Re: Jimmy with new bullying techniques.
Post by: DaBOSS54320 on October 18, 2013, 08:50:08 PM
Get the ped you lock onto and make him do the node instead of the player.

Code: [Select]
TargetPed = PedGetTargetPed()
if IsButtonBeingPressed(3,0) and TargetPed > 0 then
  PedSetActionNode(TargetPed, i dont have the node so you do this part)
end
Title: Re: Jimmy with new bullying techniques.
Post by: deadpoolXYZ on October 19, 2013, 10:01:49 PM
Get the ped you lock onto and make him do the node instead of the player.

Code: [Select]
TargetPed = PedGetTargetPed()
if IsButtonBeingPressed(3,0) and TargetPed > 0 then
  PedSetActionNode(TargetPed, i dont have the node so you do this part)
end

Why "TargetPed > 0"?
And why "IsbuttonBeingPressed" instead of "IsbuttonPressed"?

I haven't touched a lua code in like in 2 months.
Title: Re: Jimmy with new bullying techniques.
Post by: c00ld0c26 on October 20, 2013, 04:12:17 AM
Get the ped you lock onto and make him do the node instead of the player.

Code: [Select]
TargetPed = PedGetTargetPed()
if IsButtonBeingPressed(3,0) and TargetPed > 0 then
  PedSetActionNode(TargetPed, i dont have the node so you do this part)
end


Why "TargetPed > 0"?
And why "IsbuttonBeingPressed" instead of "IsbuttonPressed"?

I haven't touched a lua code in like in 2 months.

TargetedPed >0 because the number 1 equels "on" which actives the command.

IsButtonBeingPressed is set to avoid the animation to restart when holding the button and it only work again if the player leaves the button and presses it again.
Title: Re: Jimmy with new bullying techniques.
Post by: DaBOSS54320 on October 20, 2013, 01:32:34 PM
Get the ped you lock onto and make him do the node instead of the player.

Code: [Select]
TargetPed = PedGetTargetPed()
if IsButtonBeingPressed(3,0) and TargetPed > 0 then
  PedSetActionNode(TargetPed, i dont have the node so you do this part)
end


Why "TargetPed > 0"?
And why "IsbuttonBeingPressed" instead of "IsbuttonPressed"?

I haven't touched a lua code in like in 2 months.

TargetedPed >0 because the number 1 equels "on" which actives the command.

IsButtonBeingPressed is set to avoid the animation to restart when holding the button and it only work again if the player leaves the button and presses it again.

Indeed.
But justifying on the > 0 part, if your not locking onto any ped then it returns a value of -1. If you try to use it when your not locked onto anybody, the game will crash.