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


Author Topic: How can i make students hit prefects?  (Read 5222 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
How can i make students hit prefects?
« on: May 08, 2013, 04:00:07 PM »
Is there any LUA/mod code that makes that students can hit prefects. ?

« Last Edit: May 12, 2013, 12:56:40 PM by Mick3Mouse »

Offline Red Blaster

  • The BB Arab
  • More Than Halfway There
  • *****
  • Posts: 5,649
  • Gender: Male
  • Hi
    • View Profile
Re: How can i make students hit prefects?
« Reply #1 on: May 13, 2013, 01:27:46 PM »
I suspect them halting their aggression near a prefect isn't controlled through lua.

Offline Mick3Mouse

  • Obam3mouse
  • Bullworth Junkie
  • ****
  • Posts: 4,343
  • Gender: Male
  • Major Mick3Mouse Algie Hunter
    • View Profile
    • My youtube
Re: How can i make students hit prefects?
« Reply #2 on: May 13, 2013, 01:40:12 PM »
can i do it in the Attitudie file?

Offline Red Blaster

  • The BB Arab
  • More Than Halfway There
  • *****
  • Posts: 5,649
  • Gender: Male
  • Hi
    • View Profile
Re: How can i make students hit prefects?
« Reply #3 on: May 13, 2013, 01:46:02 PM »
Nope.

Attitude, FYI, is far more limited than the lua method.

Offline Mick3Mouse

  • Obam3mouse
  • Bullworth Junkie
  • ****
  • Posts: 4,343
  • Gender: Male
  • Major Mick3Mouse Algie Hunter
    • View Profile
    • My youtube
Re: How can i make students hit prefects?
« Reply #4 on: May 14, 2013, 04:04:46 AM »
:(. but is it any kind of mod or something i can download.

Someone should make a mod that this is posible

Offline MadmaN

  • Bully-Board Admin Team
  • Newbie
  • *
  • Posts: 0
  • Gender: Male
  • Biblio-Techa Mods (retired)
    • View Profile
Re: How can i make students hit prefects?
« Reply #5 on: May 23, 2013, 03:27:29 AM »
The best way to do this is to use:

PedSetTypeToTypeAttitude(faction id, faction id, attitude) which each of those is a number.

I don't have a complete list atm of what does what for each number.....so what I suggest is experimenting and see what happens.

attitude is 1 to 5 if I remember correctly. I could be wrong since I haven't looked at this for a while so I may have forgotten something.

Offline Red Blaster

  • The BB Arab
  • More Than Halfway There
  • *****
  • Posts: 5,649
  • Gender: Male
  • Hi
    • View Profile
Re: How can i make students hit prefects?
« Reply #6 on: May 23, 2013, 08:54:50 AM »
His question is how to make stop from "stopping" the second they get near authority.

Offline MadmaN

  • Bully-Board Admin Team
  • Newbie
  • *
  • Posts: 0
  • Gender: Male
  • Biblio-Techa Mods (retired)
    • View Profile
Re: How can i make students hit prefects?
« Reply #7 on: May 24, 2013, 07:28:45 PM »
Aye I know......heh

I have several times gotten students to attack authority figures without having any issues with them stopping the attack at the last minute or running away after attacking.

The code I posted above is the first step to achieve this....you also have to edit pedstats to make sure the peds in question you want to be able to attack authority figures will have absolutely no fear....and have them set to 100% for crimminality and other things and that usually works pretty well.

You also can enable the rumble mode too but hard set peds to only attack authority figures which happens on sight.....that also works but I don't know what amount of control you want over this.

Offline Phap

  • Full Member
  • ***
  • Posts: 216
  • Gender: Male
    • View Profile
Re: How can i make students hit prefects?
« Reply #8 on: May 25, 2013, 10:33:24 PM »
The Attitude.dat works well for me. I edited pedstats and put all prefects and polices' health low and vision range low so they can die easily and won;t chase after you unless your trouble meter is red. Attitude.dat, I edited it so everyone will hate the prefects and attack them on sight (abhor).

Offline Mick3Mouse

  • Obam3mouse
  • Bullworth Junkie
  • ****
  • Posts: 4,343
  • Gender: Male
  • Major Mick3Mouse Algie Hunter
    • View Profile
    • My youtube
Re: How can i make students hit prefects?
« Reply #9 on: May 27, 2013, 05:52:24 AM »
Couldn't you upload you pedstats file. I really want it.   :)))

Offline Red Blaster

  • The BB Arab
  • More Than Halfway There
  • *****
  • Posts: 5,649
  • Gender: Male
  • Hi
    • View Profile
Re: How can i make students hit prefects?
« Reply #10 on: May 27, 2013, 06:06:40 AM »
The Attitude.dat works well for me. I edited pedstats and put all prefects and polices' health low and vision range low so they can die easily and won;t chase after you unless your trouble meter is red. Attitude.dat, I edited it so everyone will hate the prefects and attack them on sight (abhor).

It can be done, yes, but it gets overridden at some point.

Offline Phap

  • Full Member
  • ***
  • Posts: 216
  • Gender: Male
    • View Profile
Re: How can i make students hit prefects?
« Reply #11 on: May 27, 2013, 11:15:08 AM »
Post your pedstats.dat here and I will change the authority's health to low then if you want the Attitude.dat too.

Offline Mick3Mouse

  • Obam3mouse
  • Bullworth Junkie
  • ****
  • Posts: 4,343
  • Gender: Male
  • Major Mick3Mouse Algie Hunter
    • View Profile
    • My youtube
Re: How can i make students hit prefects?
« Reply #12 on: May 27, 2013, 12:31:50 PM »
Can you upload your pedstats and attitude file?

Offline Red Blaster

  • The BB Arab
  • More Than Halfway There
  • *****
  • Posts: 5,649
  • Gender: Male
  • Hi
    • View Profile
Re: How can i make students hit prefects?
« Reply #13 on: May 27, 2013, 03:33:10 PM »
Mick3, editing pedstats is very easy. If you want, I can teach you how to edit it.

Offline Phap

  • Full Member
  • ***
  • Posts: 216
  • Gender: Male
    • View Profile
Re: How can i make students hit prefects?
« Reply #14 on: May 27, 2013, 06:17:40 PM »
Yes teach him!
And teach him how to edit Attitude.dat too!