Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
November 23, 2024, 12:49:12 AM
News:
Zombie Master 2 discussion
Zombie Master
|
Other
|
Trouble in Terrorist Town
| Topic:
Rearm Ammo replace
Pages: [
1
]
Author
Topic: Rearm Ammo replace (Read 3191 times)
phoenixf129
Poster
Posts: 476
I Rise from the Ashes.
«
on:
September 16, 2010, 02:23:23 PM »
Well, i made myself an ammo replace script earlier, but it doesnt work. It was made to help me out when im re-arming in singleplayer. I wanted to keep the default ammo ents when i saved the re-arm script.
Maybe BKU can implement a button in his re-armer to replace default ammo ents automatically?
Can anyone give me a hand with this?
local function replacetttammo()
local class, new_wep
for _,wep in ipairs(ents.FindByClass("item_ammo_smg1_large")) do
new_wep = ents.Create("item_ammo_smg1_ttt")
new_wep:SetPos(wep:GetPos())
new_wep:Spawn()
wep:Remove()
end
for _,wep in ipairs(ents.FindByClass("item_ammo_357_large")) do
new_wep = ents.Create("item_ammo_357_ttt")
new_wep:SetPos(wep:GetPos())
new_wep:Spawn()
wep:Remove()
end
for _,wep in ipairs(ents.FindByClass("item_ammo_pistol")) do
new_wep = ents.Create("item_ammo_pistol_ttt")
new_wep:SetPos(wep:GetPos())
new_wep:Spawn()
wep:Remove()
end
for _,wep in ipairs(ents.FindByClass("item_box_buckshot")) do
new_wep = ents.Create("item_box_buckshot_ttt")
new_wep:SetPos(wep:GetPos())
new_wep:Spawn()
wep:Remove()
end
end
concommand.Add("tttreplace", "replace", replacetttammo())
Its slimmed down from another script which my friend made.
«
Last Edit: September 16, 2010, 02:26:16 PM by phoenixf129
»
Software Upgrade Paradox - If you improve a piece of software enough times, you eventually ruin it.
Bad King Urgrain
Administrator
Posts: 12276
«
Reply #1 on:
September 16, 2010, 03:02:02 PM »
http://www.zombiemaster.org/smf/index.php?topic=9361.msg404168#msg404168
phoenixf129
Poster
Posts: 476
I Rise from the Ashes.
«
Reply #2 on:
September 18, 2010, 01:58:23 PM »
Thanks BKU!
Software Upgrade Paradox - If you improve a piece of software enough times, you eventually ruin it.
Pages
: [
1
]
Zombie Master
|
Other
|
Trouble in Terrorist Town
| Topic:
Rearm Ammo replace
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Other
-----------------------------
=> Trouble in Terrorist Town
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Powered by SMF 1.1.21
|
SMF © 2015, Simple Machines
Page created in 0.009 seconds with 18 queries.
Loading...