News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: It is possible to make a respect mod??  (Read 2069 times)

0 Members and 1 Guest are viewing this topic.

Offline Mick3Mouse

  • Obam3mouse
  • Bullworth Junkie
  • ****
  • Posts: 4,343
  • Gender: Male
  • Major Mick3Mouse Algie Hunter
    • View Profile
    • My youtube
It is possible to make a respect mod??
« on: October 09, 2013, 04:40:21 AM »
is it possible to make a respect mod?.  Like if you beat somone up they will attack you next time you meet him/her.


Offline Walter20210

  • Hero Member
  • ****
  • Posts: 1,102
  • Gender: Male
  • I keep loving the old things :P
    • View Profile
    • YouTube Account
Re: It is possible to make a respect mod??
« Reply #1 on: October 09, 2013, 09:46:40 AM »
Is possible im sure.

But i dont have any idea of how to make it work when you beat that ped.

Offline Mick3Mouse

  • Obam3mouse
  • Bullworth Junkie
  • ****
  • Posts: 4,343
  • Gender: Male
  • Major Mick3Mouse Algie Hunter
    • View Profile
    • My youtube
Re: It is possible to make a respect mod??
« Reply #2 on: October 09, 2013, 09:48:41 AM »
Like if people is killed then sets the respect.

Offline Walter20210

  • Hero Member
  • ****
  • Posts: 1,102
  • Gender: Male
  • I keep loving the old things :P
    • View Profile
    • YouTube Account
Re: It is possible to make a respect mod??
« Reply #3 on: October 09, 2013, 09:53:20 AM »
Yeah.

The part of respect is easy but the other part to detect when they are knocked out by the player i think is pretty hard.

Offline c00ld0c26

  • The D0c
  • Can't Get Enough
  • *****
  • Posts: 5,137
  • Gender: Male
  • Just a dood doing dood things.
    • View Profile
    • My channel.
Re: It is possible to make a respect mod??
« Reply #4 on: October 10, 2013, 01:49:09 AM »
Lock = PedGetTargetedPed
repeat
Wait(0)
until PedGetHealth(Lock) <= 0
PedSetTypeToTypeAttitude(factionID͵13͵AttitudeID)


Typed from phone.
Sorry for typos if found

Offline Mick3Mouse

  • Obam3mouse
  • Bullworth Junkie
  • ****
  • Posts: 4,343
  • Gender: Male
  • Major Mick3Mouse Algie Hunter
    • View Profile
    • My youtube
Re: It is possible to make a respect mod??
« Reply #5 on: October 10, 2013, 07:53:37 AM »
Thanks!  :)


But that code just sets the faction respect? or i'm wrong? xD

But i meanif you for example if you beat up Gary it sets the respect from palyer to that ped?

you know what i mean.  If you beat up Gary it sets the respect so that Gary hates the player.

Offline Walter20210

  • Hero Member
  • ****
  • Posts: 1,102
  • Gender: Male
  • I keep loving the old things :P
    • View Profile
    • YouTube Account
Re: It is possible to make a respect mod??
« Reply #6 on: October 10, 2013, 10:43:24 AM »
ok let me fix it

until PedGetHealth(Lock) <= 0
PedSetPedToTypeAttitude(Lock, 13, AttitudeID) -- This should work :P

Im not sure at all about this -> "-1" but maybe it will work. instead of putting a attitude id put -1 and test if it works