Prop cost change?

Hey, I’m running Flood Mod 1.00 on my garrysmod server and I was wondering if anyone knows how to change the props cost. Thanks for any help, and if you need any additional information just feel free to ask.

Locate to: gamemodes/flood/gamemode/shared.lua open it with notepad/notepad++(prefered) find the prop you want to change the price on, and take the value: cost = xx. Where xx is the amount of money you want the prop to cost.

I don’t get what you are trying to say can you give me an example? Thanks.

You open the file called shared.lua located in your flood gamemode folder… And then you edit the cost in the list… Once you open the file you should know how to do it



DeriveGamemode("sandbox")

Owner = 1
Gold = 2
Normal = 3
Dead = 4
Vip = 5
team.SetUp (Owner, "Owner", Color (0, 205, 0, 255))
team.SetUp (Gold, "Super Admin", Color (205, 0, 0, 255))
team.SetUp (Normal, "Guest", Color (0, 0, 205, 255))
team.SetUp (Dead, "Dead", Color (80, 80, 80, 255))
team.SetUp (Vip, "Admin", Color (50, 100, 100, 255))

/*---------------------------------------------------------
  Relevant information
---------------------------------------------------------*/

GM.Name 	= "Flood"
GM.Author 	= "mdew355"
GM.Email 	= ""
GM.Website 	= ""


I don’t see anything to do with the prop cost…

It is init.lua.

Yeah, I’m really lost. The only thing in init.lua that has to deal with props is the damage to the props if certain weapons shoot them. Nothing about the cost. Can I get like line numbers and the file? It would really help a lot.

It was in shared.lua, your blind…
Line 79.

o.o I don’t see it.

/facepalm…
[PROPLIST 1]
Money=
Cost=
Type=
Model=
ETC

I’m sorry. I really have no clue what your talking about… o.O
I’ve searched every file line for hours and I can’t find anything that indicates the price. All I see is the visual part that I already edited at the end of cl_menu.lua

Are you talking about these?


PList["Cost: $39
Health: 45"] = "models/props_c17/FurnitureTable002a.mdl"

Here, LET ME DO THIS IN RETARD PROOF FORMAT


 OPEN SHARED.LUA IN ORANGEBOX/GARRYSMOD/GAMEMODES/FLOOD/GAMEMODE



1. OPEN THE FILE


2. FIND LINE 79! 

[lua]PropList = {}
PropList[1] = {
Cost = 40,
Health = 45,
Model = “models/props_c17/FurnitureTable002a.mdl”
}
PropList[2] = {
Cost = 30,
Health = 30,
Model = “models/props_c17/gravestone_coffinpiece002a.mdl”
}
PropList[3] = {
Cost = 15,
Health = 30,
Model = “models/props_c17/oildrum001.mdl”
}
PropList[4] = {
Cost = 90,
Health = 90,
Model = “models/props_c17/shelfunit01a.mdl”
}
PropList[5] = {
Cost = 75,
Health = 75,
Model = “models/props_c17/concrete_barrier001a.mdl”
}
PropList[6] = {
Cost = 5,
Health = 25,
Model = “models/props_borealis/door_wheel001a.mdl”
}
PropList[7] = {
Cost = 130,
Health = 130,
Model = “models/props_c17/display_cooler01a.mdl”
}
PropList[8] = {
Cost = 70,
Health = 90,
Model = “models/props_c17/canister_propane01a.mdl”
}
PropList[9] = {
Cost = 15,
Health = 20,
Model = “models/props_c17/bench01a.mdl”
}
PropList[10] = {
Cost = 275,
Health = 300,
Model = “models/props_c17/FurnitureCouch001a.mdl”
}
PropList[11] = {
Cost = 20,
Health = 35,
Model = “models/Combine_Helicopter/helicopter_bomb01.mdl”
}
PropList[12] = {
Cost = 400,
Health = 400,
Model = “models/props_c17/FurnitureShelf001a.mdl”
}
PropList[13] = {
Cost = 15,
Health = 30,
Model = “models/props_c17/gravestone003a.mdl”
}
PropList[14] = {
Cost = 1750,
Health = 2000,
Model = “models/props_c17/Lockers001a.mdl”
}
PropList[15] = {
Cost = 30,
Health = 40,
Model = “models/props_debris/metal_panel02a.mdl”
}
PropList[16] = {
Cost = 150,
Health = 150,
Model = “models/props_debris/metal_panel01a.mdl”
}
PropList[17] = {
Cost = 35,
Health = 60,
Model = “models/props_c17/canister01a.mdl”
}
PropList[18] = {
Cost = 125,
Health = 125,
Model = “models/props_doors/door03_slotted_left.mdl”
}
PropList[19] = {
Cost = 450,
Health = 450,
Model = “models/props_docks/dock03_pole01a_256.mdl”
}
PropList[20] = {
Cost = 300,
Health = 300,
Model = “models/props_docks/dock01_pole01a_128.mdl”
}
PropList[21] = {
Cost = 200,
Health = 200,
Model = “models/props_interiors/BathTub01a.mdl”
}
PropList[22] = {
Cost = 80,
Health = 100,
Model = “models/props_interiors/Furniture_Desk01a.mdl”
}
PropList[23] = {
Cost = 10,
Health = 20,
Model = “models/props_borealis/mooring_cleat01.mdl”
}
PropList[24] = {
Cost = 250,
Health = 250,
Model = “models/props_interiors/Furniture_shelf01a.mdl”
}
PropList[25] = {
Cost = 350,
Health = 400,
Model = “models/props_interiors/refrigerator01a.mdl”
}
PropList[26] = {
Cost = 25,
Health = 40,
Model = “models/props_interiors/refrigeratorDoor01a.mdl”
}
PropList[27] = {
Cost = 600,
Health = 1000,
Model = “models/props_interiors/VendingMachineSoda01a.mdl”
}
PropList[28] = {
Cost = 200,
Health = 450,
Model = “models/props_interiors/VendingMachineSoda01a_door.mdl”
}
PropList[29] = {
Cost = 20,
Health = 100,
Model = “models/props_building_details/Storefront_Template001a_Bars.mdl”
}
PropList[30] = {
Cost = 40,
Health = 60,
Model = “models/props_borealis/bluebarrel001.mdl”
}

WeaponList = {}
WeaponList[1] = {
Model = “models/weapons/w_pist_deagle.mdl”,
Weapon = “weapon_deagle”,
Name = “Deagle”,
Damage = 3,
Cost = 1000,
AmmoType = “Pistol”,
Tip = “A clean hand gun for perfect protection.”
}
WeaponList[2] = {
Model = “models/weapons/W_357.mdl”,
Weapon = “weapon_357”,
Name = “Magnum”,
Damage = 4,
Cost = 2000,
AmmoType = “357”,
Tip = “A large handgun with great strength.”
}
WeaponList[3] = {
Model = “models/weapons/W_crossbow.mdl”,
Weapon = “weapon_crossbow”,
Name = “CrossBow”,
Damage = 10,
Cost = 3000,
AmmoType = “XBowBolt”,
Tip = “A powerful long range weapon with great strength.”
}
WeaponList[4] = {
Model = “models/w_rpg.mdl”,
Weapon = “weapon_rpg”,
Name = “Rocket Launcher”,
Damage = 0,
Damage2 = 25,
Cost = 10000,
Ammo = 3,
AmmoR = 2,
AmmoType = “RPG_Round”,
Tip = “An explosive weapon that will damage multiple things at once.”
}
WeaponList[5] = {
Model = “models/weapons/w_smg_tmp.mdl”,
Weapon = “weapon_tmp”,
Name = “Tmp”,
Damage = 3,
Cost = 12000,
Ammo = 180,
AmmoR = 50,
AmmoType = “SMG1”,
Tip = “An automatic weapon with great accuracy.”
}
WeaponList[6] = {
Model = “models/weapons/w_pist_elite.mdl”,
Weapon = “weapon_elite”,
Name = “Elite”,
Damage = 5,
Cost = 1000,
Ammo = 180,
AmmoR = 50,
AmmoType = “Pistol”,
Tip = “An elite weapon with great accuracy.”
}
WeaponList[7] = {
Model = “models/weapons/w_rif_ak47.mdl”,
Weapon = “weapon_ak47”,
Name = “Ak47”,
Damage = 15,
Cost = 10000,
Ammo = 180,
AmmoR = 50,
AmmoType = “SMG1”,
Tip = “An AK47 Gangster weapon with great accuracy.”
}
WeaponList[8] = {
Model = “models/weapons/w_smg_mp5.mdl”,
Weapon = “weapon_mp5”,
Name = “Ak47”,
Damage = 10,
Cost = 9000,
Ammo = 180,
AmmoR = 50,
AmmoType = “SMG1”,
Tip = “An MP5 from CS Source.”
}
WeaponList[9] = {
Model = “models/weapons/w_rif_m4a1.mdl”,
Weapon = “weapon_m4a1”,
Name = “M4A1”,
Damage = 25,
Cost = 25000,
Ammo = 180,
AmmoR = 50,
AmmoType = “SMG1”,
Tip = “An Ultra Powerful M4A1”
}
WeaponList[10] = {
Model = “models/weapons/w_smg_p90.mdl”,
Weapon = “weapon_p90”,
Name = “P90”,
Damage = 15,
Cost = 7000,
Ammo = 180,
AmmoR = 50,
AmmoType = “SMG1”,
Tip = “A P90 from Counter-Strike Source”
}
WeaponList[11] = {
Model = “models/weapons/w_snip_awp.mdl”,
Weapon = “weapon_awp”,
Name = “AWP”,
Damage = 200,
Cost = 100000,
Ammo = 180,
AmmoR = 50,
AmmoType = “SMG1”,
Tip = “Ultra Powerful Sniper Rifle”
}
WeaponList[12] = {
Model = “models/weapons/w_pist_p228.mdl”,
Weapon = “weapon_p228”,
Name = “P228”,
Damage = 15,
Cost = 3000,
Ammo = 180,
AmmoR = 50,
AmmoType = “Pistol”,
Tip = “A sleek pistol.”
}
WeaponList[13] = {
Model = “models/weapons/w_pist_fiveseven.mdl”,
Weapon = “weapon_fiveseven”,
Name = “Five Seven”,
Damage = 20,
Cost = 12000,
Ammo = 180,
AmmoR = 50,
AmmoType = “Pistol”,
Tip = “An awesome FiveSeven.”
}
[/lua]

EDIT THEM ACCORDINGLY
COST IS THE FUCKING THING TO EDIT THE PRICE

Omfg, read what version i have. This is the shared.lua for fuxing 2.01 i have 1.0 read the whole thing before you start calling people dumbasses. You must happen to be one yourself.

Your retarded for not knowing…
I refuse to help you know, because I’m too stoopid an i doj nawt noe hawo to spelzl oar tyawpe

:slight_smile: That made me laugh like dis ----> :smiley: :slight_smile: :smiley: :slight_smile: :smiley: :slight_smile:

I really need help you guys…

I just looked through the 1.0 code and it’s a fucking disaster and you should upgrade to a new version, BUT:

Prop cost is dynamic & calculated based on the mass of the prop. I couldn’t find the code for building props (and I’m not wasting anymore time on it), but the code for removing is definitely in Players.lua

edit:I think the prop spawning code is in a function called “RemoveIt” . That’s how much this shit makes sense :confused:

lol, this is exactly why I posted here xD