Bully-Board

News:

News

Find loads of Bully Mods in in our Modding Section.

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - 3gtheepic

Pages: 1 2
1
Bully Modding / Infinite Loading Screen
« on: April 02, 2019, 11:47:54 PM »
Every time I go to the arcade race machine it loads infinitely. I also borrowed a lot of code from DaBoss. Can anybody help me?
 Here is the Code:

Code: [Select]
function MissionSetup()
PlayerSetPosXYZArea(14,-498,319,31)
PlayerSetHealth(PedGetMaxHealth(gPlayer))
LoadAllAnim()
end

function MissionCleanup()
TextPrintString('',1,1)
TextPrintString('',1,2)
PlayerSetControl(1)
CameraReturnToPlayer()
CameraSetWidescreen(false)
SoundStopStream()
DisablePunishmentSystem(false)
end


function main()
TestMissionPartOne()
end

function PedsPrepareConversation(ped1, ped2, distance, walkSpeed)
PlayerSetPunishmentPoints(0)
if PedGetWeapon(gPlayer) == 437 then
PedSetWeapon(gPlayer, -1)
end
if PedIsInAnyVehicle(gPlayer) then
PedWarpOutOfCar(gPlayer)
end
PedStop(ped2)
local x,y,z = PedGetPosXYZ(ped2)
PedMoveToXYZ(ped1, walkSpeed, x, y, z)
local r1 = x + distance
    local r2 = y + distance
    local r3 = x - distance
    local r4 = y - distance
x, y, z = PedGetPosXYZ(ped1)
PedFaceXYZ(ped2, x, y, z)
repeat
Wait(0)
until PedInRectangle(ped1,r1,r2,r3,r4)
PedStop(ped1)
x,y,z = PedGetPosXYZ(ped2)
PedFaceXYZ(ped1,x,y,z)
    x,y,z = PedGetPosXYZ(ped1)
    PedFaceXYZ(ped2,x,y,z)

end


function TestMissionPartOne()
CameraFade(500,1)
pete = PedCreate(14,-494,320,31)
PedSetStationary(pete, true)
PedSetInvulnurable(pete, true)
PlayerSetControl(0)
CameraSetXYZ(-493,317,31)
CameraLookAtXYZ(-495,314,31.5)
CameraSetWidescreen(true)
PedsPrepareConversation(gPlayer, pete, 1, 0)
TextPrintString("Peter: YO, bitch. It's your boy, blueface. Bust down thotiana. Jk. It's Pete.", 10, 2)
Wait(2000)
TextPrintString("Jimmy: What the fuck? Fuck you.", 10, 2)
Wait(2000)
TextPrintString("Pete: FUCK YOU TOO! DIE BITCH!", 10, 2)
AddBlipForChar(pete, 0, 26, 2)
PedSetStationary(pete,false)
PedSetInvulnurable(pete, false)
PlayerSetControl(1)
    CameraReturnToPlayer()
    CameraSetWidescreen(false)
SoundPlayStream("MS_BikeChaseHigh.rsm", 0.69999998807907)
PedAttackPlayer(pete)
repeat
Wait(0)
until PedIsDead(pete)
MissionSucceed()


end




2
Bully Modding Archives / im back
« on: November 26, 2016, 09:59:14 AM »
working on some cool new mods...


: ^)

3
Bully Modding / Re: [WIP] Bully Multiplayer
« on: October 10, 2016, 06:41:07 PM »
Cool! I can't wait!

4
Script Modding / Re: A function I just made up
« on: October 10, 2016, 03:18:11 PM »
Thanks for pointing out the problems. I kinda knew that I didn't have the ends there I was just too lazy to edit them out.

I'm also working on a cool mission mod. I think it'll come out somewhere around halloween.


5
Script Modding / A function I just made up
« on: October 10, 2016, 11:37:04 AM »
I was bored so I made this function you guys can use


Code: [Select]
function SetFightingMusicForPed(song,volume,ped)
              if PedAttackPlayer(ped) then
                     SoundPlayStream(song, volume)
              if PedIsDead(ped) or PedIsValid(ped) then
                    SoundStopStream()
end


Example of how you can use this function:

Code: [Select]
SetFightingMusicForPed('MS_FightingJohnnyVincentBossFight.rsm',1,norton)

This function is good for missions that roleplay as different characters

(ex. Norton as will smith)


6
Here is the code:

Code: [Select]
CameraSetXYZ(-502.24,315.73,32.63)
TextPrintString("Jimmy: Have you heard that the townies are planning to come here, and beat everybody up?",10,2)
Wait(2500 * (125 / 100))
TextPrintString("Pete: Well, really? I thought that already happened?",10,2)
Wait(2500 * (125/100))
TextPrintString("Jimmy: No time to talk, I think they are here!",1,2)
Wait(1275)
PedWander(pete,true)
CameraSetWidescreen(false)
SoundEnableSpeech()
PlayerSetControl(1)
CameraReset()
CameraReturnToPlayer()
F_ConfrontThem()


here is the picture:


http://imgur.com/a/ffR0X


8
Modding Questions/Help Archives / Re: How to use AreaGetVisible()
« on: September 26, 2016, 07:06:14 PM »
Thanks!

9
Sorry, but I lost
the link to the coord grabber and I couldnt find the link on bully board :-(

i suck  >:(

10
Modding Questions/Help Archives / How to use AreaGetVisible()
« on: September 25, 2016, 06:44:45 PM »
In my mission, I want it to be so after you exit the boys dorm to remove a blip and start a cutscene but for some reason it does not work.

btw, here is the code

Code: [Select]
function MissionSetup()
  AreaTransitionXYZ(14,-503.7,318.9,31.4)
  backupWeapons = GetWeapons()
  PlayerSetHealth(PedGetMaxHealth(gPlayer))
  originalModelStatus = {}
  for i = 2,258 do
      originalModelStatus[i] = PedGetUniqueModelStatus(i)
    end
  PedSetUniqueModelStatus(46,-1)
  PedSetUniqueModelStatus(42,-1)
  PedSetUniqueModelStatus(44,-1)
  bustingAnims = {
{"/Global/Actions/Grapples/Front/Grapples/GrappleMoves/Adult_Takedown","Act/Globals.act"},
{"/Global/Actions/Grapples/Front/Grapples/GrappleMoves/Adult_Takedown/Hold_Cycle","Act/Globals.act"},
{"/Global/Actions/Grapples/Front/Grapples/GrappleMoves/EarGrab","Act/Globals.act"},
{"/Global/Actions/Grapples/Front/Grapples/GrappleMoves/Punishment_Hold","Act/Globals.act"},
{"/Global/Actions/Grapples/Front/Grapples/GrappleMoves/Punishment_Hold/Hold_Cycle","Act/Globals.act"},
{"/Global/Actions/Grapples/Front/Grapples/GrappleMoves/Tonfa_Impale","Act/Globals.act"},
{"/Global/Actions/Grapples/Front/Grapples/GrappleMoves/Tonfa_Impale/TonfaImpale","Act/Globals.act"}
}
    F_LoadAllAnim()
originalAttitudes = {}
originalRespects = {}
for f = 0,11 do
    table.insert(originalAttitudes,PedGetTypeToTypeAttidude(f,13))
if f ~= 0 and (f < 7 or f > 10) then
    PedSetTypeToTypeAttidude(f,13,4)
end
table.insert(originalRespects,GetFactionRespect(f))
if f ~= 0 and (f < 7 or f > 10) then
    SetFactionRespect(f,100)
end
end
originalMoney = PlayerGetMoney()
PlayerSetMoney(10000)
PedSetWeapon(gPlayer,305,50)
PedSetWeapon(gPlayer,307,50)
PedSetWeapon(gPlayer,-1)

end

function MissionCleanup()
    for f = 0,11 do
    PedSetTypeToTypeAttidude(f,originalAttitudes[f+1])
SetFactionRespect(f,originalRespects[f+1])
end
for i = 2,258 do
    PedSetUniqueModelStatus(originalModelStatus[i])
end
SoundStopStream()
CameraSetWidescreen(false)
SoundEnableSpeech()
PlayerSetControl(1)
CameraReset()
CameraReturnToPlayer()
PlayerSetHealth(PedGetMaxHealth(gPlayer))
PlayerSetMoney(originalMoney)
DisablePunishmentSystem(false)
GiveWeapons(backupWeapons)
AreaTransitionXYZ(14,-507.5,323.4,31.4)
PedFaceXYZ(gPlayer,-505.5,325.6,31.4)
end


function main()
  F_FirstCutscene()
end

function PedsFaceEachOther(ped1,ped2)
    local x,y,z = PedGetPosXYZ(ped1)
PedFaceXYZ(ped2,x,y,z)
x,y,z = PedGetPosXYZ(ped2)
PedFaceXYZ(ped1,x,y,z)
end


function AllPedsDead(peds)
    for i = 1,table.getn(peds) do
    if PedIsValid(peds[i]) and not PedIsDead(peds[i]) then
    return false
end
end
return true
end

function MakePedStrongEnemy(ped)
    GameSetPedStat(ped,12,90)
GameSetPedStat(ped,14,100)
GameSetPedStat(ped,6,0)
GameSetPedStat(ped,7,0)
GameSetPedStat(ped,8,500000)
GameSetPedStat(ped,10,math.random(90,100))
GameSetPedStat(ped,11,500000)
GameSetPedStat(ped,13,GameGetPedStat(ped,13)*1.3)
GameSetPedStat(ped,62,0)
GameSetPedStat(ped,38,100)
GameSetPedStat(ped,39,GameGetPedStat(ped,39)*1.5)
GameSetPedStat(ped,34,100)
GameSetPedStat(ped,61,math.random(70,100))
GameSetPedStat(ped,20,GameGetPedStat(ped,20)*1.17)
GameSetPedStat(ped,63,GameGetPedStat(ped,63)*0.25)
PedSetTypeToTypeAttidude(ped,13,0)
end

function F_LoadAllAnim()
    LoadAnimationGroup("Authority")
LoadAnimationGroup("Boxing")
LoadAnimationGroup("B_Striker")
LoadAnimationGroup("CV_Female")
LoadAnimationGroup("CV_Male")
LoadAnimationGroup("DO_Edgar")
LoadAnimationGroup("DO_Grap")
LoadAnimationGroup("DO_StrikeCombo")
LoadAnimationGroup("DO_Striker")
LoadAnimationGroup("F_Adult")
LoadAnimationGroup("F_BULLY")
LoadAnimationGroup("F_Crazy")
LoadAnimationGroup("F_Douts")
LoadAnimationGroup("F_Girls")
LoadAnimationGroup("F_Greas")
LoadAnimationGroup("F_Jocks")
LoadAnimationGroup("F_Nerds")
LoadAnimationGroup("F_OldPeds")
LoadAnimationGroup("F_Pref")
LoadAnimationGroup("F_Preps")
LoadAnimationGroup("G_Grappler")
LoadAnimationGroup("G_Johnny")
LoadAnimationGroup("G_Striker")
LoadAnimationGroup("Grap")
LoadAnimationGroup("J_Damon")
LoadAnimationGroup("J_Grappler")
LoadAnimationGroup("J_Melee")
LoadAnimationGroup("J_Ranged")
LoadAnimationGroup("J_Striker")
LoadAnimationGroup("LE_Orderly")
LoadAnimationGroup("Nemesis")
LoadAnimationGroup("N_Ranged")
LoadAnimationGroup("N_Striker")
LoadAnimationGroup("N_Striker_A")
LoadAnimationGroup("N_Striker_B")
LoadAnimationGroup("P_Grappler")
LoadAnimationGroup("P_Striker")
LoadAnimationGroup("PunchBag")
LoadAnimationGroup("Qped")
LoadAnimationGroup("Rat_Ped")
LoadAnimationGroup("Russell")
LoadAnimationGroup("Russell_Pbomb")
LoadAnimationGroup("Straf_Dout")
LoadAnimationGroup("Straf_Fat")
LoadAnimationGroup("Straf_Female")
LoadAnimationGroup("Straf_Male")
LoadAnimationGroup("Straf_Nerd")
LoadAnimationGroup("Straf_Prep")
LoadAnimationGroup("Straf_Savage")
LoadAnimationGroup("Straf_Wrest")
LoadAnimationGroup("TE_Female")
end


function RemoveSkateboard()
    PlayerSetPunishmentPoints(0)
if PedGetWeapon(gPlayer) == 437 then
    PedSetWeapon(gPlayer,-1)
PedSetActionNode(gPlayer,"/Global/","Act/Globals.act")
end
end

function ProtectAlly(ped)
    PedRecruitAlly(ped)
    if not PedIsValid(ped) or PedIsDead(ped) then
   local failLines = {
       "You failed to protect your ally!",
   "Dude, he was protecting you, why can't you protect him?",
   "Your ally got shreked!",
   "Look what you've done, your ally is now dead."


TextPrintString(failLines[math.random(1,table.getn(failLines))],3,1)
Wait(2000)
MissionFail()
TerminateCurrentScript()
else
    local gg = PedGetGrappleTargetPed(ped)
if PedGetFaction(gg) == 0 or PedGetFaction(gg) == 7 then
    PedSetActionNode(ped,"/Global/Actions/Grapples/GrappleReversals/StandingReversals/GrappleBreak_GIVE","Act/Globals.act")
end
end
end


function ProtectTwoAllys(ped1,ped2)
    PedRecruitAlly(ped1)
PedRecruitAlly(ped2)
if not PedIsValid(ped1) or PedIsDead(ped1) then
    local failLines2 = {
   "You failed to protect your allys!",
   "Dude, they both were protecting you, so why can't you protect them?",
   "Your allys got shreked!",
   "Look what you've done, your allys is now dead."
}
TextPrintString(failLines2[math.random(1,table.getn(failLines2))],3,1)
Wait(2000)
MissionFail()
TerminateCurrentScript()
else
    local gg2 = PedGetGrappleTargetPed(ped1)
if PedGetFaction(gg2) == 0 or PedGetFaction(gg2) == 7 then
    PedSetActionNode(ped1,"/Global/Actions/Grapples/GrappleReversals/StandingReversals/GrappleBreak_GIVE","Act/Globals.act")
end
end
if not PedIsValid(ped2) or PedIsDead(ped2) then
    local failLines2 = {
   "You failed to protect your allys!",
   "Dude, they both were protecting you, so why can't you protect them?",
   "Your allys got shreked!",
   "Look what you've done, your allys is now dead."
}
TextPrintString(failLines2[math.random(1,table.getn(failLines2))],3,1)
Wait(2000)
MissionFail()
TerminateCurrentScript()
else
    local gg3 = PedGetGrappleTargetPed(ped2)
if PedGetFaction(gg3) == 0 or PedGetFaction(gg3) == 7 then
    PedSetActionNode(ped,"/Global/Actions/Grapples/GrappleReversals/StandingReversals/GrappleBreak_GIVE","Act/Globals.act")
end
end
end


function F_FirstCutscene()
    AreaTransitionXYZ(14,-503.7,318.9,31.4)
CameraFade(500,1)
    CameraReset()
pete = PedCreateXYZ(134,-501.4,318.3,31.4)
PedsFaceEachOther(gPlayer,pete)
PlayerSetControl(0)
CameraSetWidescreen(true)
SoundDisableSpeech()
RemoveSkateboard()

CameraSetXYZ(-502.24,315.73,32.63)
TextPrintString("Jimmy: Have you heard that the townies are planning to come here, and beat everybody up?",10,2)
Wait(2500 * (125 / 100))
TextPrintString("Pete: Well, really? I thought that already happened?",10,2)
Wait(2500 * (125/100))
TextPrintString("Jimmy: No time to talk, I think they are here!",1,2)
Wait(1275)
PedWander(pete,true)
CameraSetWidescreen(false)
SoundEnableSpeech()
PlayerSetControl(1)
CameraReset()
CameraReturnToPlayer()
F_ConfrontThem()
end

function F_ConfrontThem()
    TextPrintString("Confront whoever is outside",3,1)
    blip1 = BlipAddXYZ(-501.8,307.2,31.4,29)
gurney = PedCreateXYZ(46,271.4088135,-111.4365768,6.214407921)
otto = PedCreateXYZ(42,273.212616,-111.2962646,6.191555023)
duncan = PedCreateXYZ(44,269.5200806,-111.2836075,6.244811535)
    if AreaGetVisible == 0 then
    BlipRemove(blip1)
end
   
   
end


I AM SO BAD :-(


11
I tried using your coord grabber for camera but everytime I put in the coords, the camera just goes somewhere else! (i suck at modding) :-(



12
Thanks.

13
I can't seem to get the camera coords right. Every time I think I put in the right coords,  the camera ends up being under the floor. Any help?


Also, sorry I'm asking too much questions, I'm new to modding.

14
Auditory Experiences / Re: beta dialogue (maybe)
« on: September 23, 2016, 04:45:01 PM »
I think johnny says that when you dont hit any of the greasers.

15
Modding Questions/Help Archives / Re: Loading
« on: September 22, 2016, 06:38:07 PM »
Hey dude welcome to the board and here's a bit of info on how to mod and make a mission. I haven't been around in a while busy working but I have my f_cking files this time  >:(. So i'll give you a post I made on mission modding. One is a test mission script and the other a tutorial. 

http://bully-board.com/index.php?topic=22996.msg394002#msg394002

http://bully-board.com/index.php?topic=22975.msg393727#msg393727

To correct this blip tutorial here is a stealth script

Code: [Select]
local l_0_0 = {}
local l_0_1 = false
local l_0_2 = true
local l_0_3 = true
 
MissionSetup = function()
  DATLoad("SpawnTest.DAT", 2)
  DATInit()
  AreaTransitionPoint(22, POINTLIST._ST_PLAYER)
  AreaOverridePopulation(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
  {id = nil, point = POINTLIST._ST_COP, model = 83}.path = PATH._ST_COP
  {id = nil, point = POINTLIST._ST_COP, model = 83}.path2 = PATH._ST_COP2
  {id = nil, point = POINTLIST._ST_COP, model = 83}.path3 = PATH._ST_COP3
  l_0_0 = AreaOverridePopulation
  ItemSetCurrentNum(370, 10)
end
 
MissionCleanup = function()
  DATUnload(2)
  AreaRevertToDefaultPopulation()
end
 
main = function()
  local l_3_0 = nil
  local l_3_1 = BlipAddXYZ(-100, 56, 26, 0, 1)
  RadarSetIndoorRange(20)
  for l_3_5 = l_0_0, nil, nil do
    l_3_5.id = PedCreatePoint(l_3_5.model, l_3_5.point)
    PedSetStealthBehavior(l_3_5.id, 1, F_OnSightCallback, F_OnHearCallback)
    PedSetStealthVisionHeight(l_3_5.id, 0.5)
    l_3_0 = l_3_5.id
  end
  while 1 do
    if l_0_1 then
      TextPrintString("Press ~x~ to make cop stop.", 0.10000000149012, 2)
    else
      TextPrintString("Press ~x~ to make cop patrol, ~t~ to reset props, ~o~ to return to start.", 0.10000000149012, 2)
    end
    if IsButtonPressed(7, 0) then
      PedAttack(l_3_0, gPlayer, 3)
      Wait(500)
    elseif IsButtonPressed(6, 0) then
      if l_0_1 then
        F_StopPeds()
      else
        F_MovePeds(0)
      end
      Wait(500)
    elseif IsButtonPressed(8, 0) then
      Wait(500)
    elseif IsButtonPressed(9, 0) then
      Wait(500)
    end
    Wait(0)
  end
end
 
F_OnHearCallback = function(l_4_0)
end
 
F_OnSightCallback = function(l_5_0)
end
 
F_MovePeds = function(l_6_0)
  for l_6_4 = l_0_0, nil, nil do
    if l_6_4.id ~= nil then
      PedFollowPath(l_6_4.id, l_6_4.path, 2, l_6_0, F_T1, 0, F_T2, F_T3)
    end
  end
  l_0_1 = true






end
 
F_T1 = function(l_7_0, l_7_1, l_7_2)
end
 
F_T2 = function(l_8_0, l_8_1, l_8_2)
end
 
F_T3 = function(l_9_0, l_9_1, l_9_2, l_9_3)
end
 
F_StopPeds = function()
  for l_10_3 = l_0_0, nil, nil do
    if l_10_3.id ~= nil then
      PedStop(l_10_3.id)
    end
  end
  l_0_1 = false
end
 
F_ReturnToStart = function()
  for l_11_3 = l_0_0, nil, nil do
    if l_11_3.id ~= nil then
      PedMoveToPoint(l_11_3.id, 0, l_11_3.point)
    end
  end
  l_0_1 = false
end
 
F_RestoreProps = function()
  if PAnimIsDestroyed(TRIGGER._ST_CRATE_01) then
    PAnimCreate(TRIGGER._ST_CRATE_01)
  end
  if PAnimIsDestroyed(TRIGGER._ST_CRATE_02) then
    PAnimCreate(TRIGGER._ST_CRATE_02)
  end
  if PAnimIsDestroyed(TRIGGER._ST_CRATE_03) then
    PAnimCreate(TRIGGER._ST_CRATE_03)
  end
end


Thanks, ill go check it out. I think you released alot of bully scripts so I think that might help. Thanks for all your guys help!!!

Pages: 1 2

SimplePortal 2.3.7 © 2008-2020, SimplePortal