| User | Post |
|
09:27 4. July 2010
| greentechb
| | |
| Member | posts 11 | |
|
|
i've got a question about the map editor. i'm working on a single-player map, and it's almost finished, but i just don''t know an important thing. how can i set the health, and the ammo for the weapons at the beginning??? because when i test the map i've got 999 health and ammo. how can i fix it? please answer to me if you've got an idea.
|
|
|
23:06 4. July 2010
| HV
| | PL | |
| Admin
| posts 118 | |
|
|
Hey!
- Save your level as Name_of_your_level (for example)
- Go to folder Painkiller/Data/Levels/Name_of_your_level
- Create there a file Name_of_your_level.lua (remember about *.lua file format)
- Open this file with Notepad
- Edit it & add there:
function Name_of_your_level.:OnPlay(first) if first then
--Player.EnabledWeapons = {"PainKiller","Shotgun",nil,nil}
Player.Ammo =
{
Shotgun = 40,
MiniGun = 0,
Grenades = 0,
Stakes = 5,
IceBullets = 0,
Shurikens = 0,
Electro = 0,
Rifle = 0,
FlameThrower = 0,
Bolt = 0,
HeaterBomb = 0,
}
Player.Health = 100
end
end
- Save
|
|
|
07:56 5. July 2010
| greentechb
| | |
| Member | posts 11 | |
|
|
thank you :)
and how is it works in pk:overdose? what are the names of the weapons?
|
|
|
14:02 5. July 2010
| greentechb
| | |
| Member | posts 11 | |
|
|
it will be a painkiller overdose map, called sp_houseofthedead, based on dm_blink. can i upload it on this site when it's finished? 
|
|
|
15:31 5. July 2010
| HV
| | PL | |
| Admin
| posts 118 | |
|
|
Yeah, I hope you share this level on this forum :)
code of sp_houseofthedead.lua:
o._MagicCard = MagicCards.permCards[12] -- Last Breath
o._CardTask = Languages.Texts[811]
function sp_houseofthedead:OnPlay(first)
if first then
Player.EnabledWeapons = {"RazorCube","Bonegun","CannonGun","MagicCrossbow","Screamer","HellBlade","Ectoplasmer","EggBomb"}
Player.Ammo =
{
Shotgun = 0,
Grenades = 0,
Stakes = 0,
IceBullets = 0,
Shurikens = 0,
Electro = 0,
Rifle = 0,
FlameThrower = 0,
Bolt = 0,
HeaterBomb = 0,
PhantomBlades = 0,
CogWheels = 0,
Bonegun = 30,
StoneBullets = 5,
Ectoplasm = 40,
GreenGoo = 50,
Skulls = 30,
DarkEnergy = 75,
BrainWorms = 70,
BrokenSouls = 30,
Cannonball = 15,
MiniGun = 99,
Arrows = 45,
Heads = 50,
StickyBombs = 10,
}
Player.Health = 105
if Game.HealthCapacity < 105 then Game.HealthCapacity = 105 end
Player._CurWeaponIndex = 1
self._lastTimeQuake = 0
end
end
function sp_houseofthedead:GetCardStatus()
local card = self._MagicCard
if Game.CardsAvailable[card.index] then return 1 end
if Game.LevelTime > 1200 then return 0 end
return -1
end
|
|
|
18:39 5. July 2010
| greentechb
| | |
| Member | posts 11 | |
|
|
thank you very much again how can i upload it (i think i'll do it tomorrow)?
|
|
|
21:48 5. July 2010
| HV
| | PL | |
| Admin
| posts 118 | |
|
|
|
07:27 6. July 2010
| greentechb
| | |
| Member | posts 11 | |
|
|
ok thanks for all your help. your painEd tutorial and
these scipts were very helpful to create my map.
|
|
|
16:54 6. July 2010
| HV
| | PL | |
| Admin
| posts 118 | |
|
|
No problem. In the future I would like to write an article about creating of sp-levels.
|
|
|
18:56 6. July 2010
| greentechb
| | |
| Member | posts 11 | |
|
|
i'm looking forward to see it 
|
|
|
19:54 6. July 2010
| greentechb
| | |
| Member | posts 11 | |
|
|
how can i post my level? i uploaded it on filefront.
|
|
|
20:06 6. July 2010
| HV
| | PL | |
| Admin
| posts 118 | |
|
|
After uploading you should see link to your level. Paste that link here.
;>
|
|
|
09:25 7. July 2010
| greentechb
| | |
| Member | posts 11 | |
|
|
got it. 
http://www.filefront.com/16980…..eDead.zip/
i'll be back in 1 and a half weeks. i hope you'll upload my level and your single player tutorial 
i'm going to start another level. (single player again)
|
|
|
17:44 7. July 2010
| HV
| | PL | |
| Admin
| posts 118 | |
|
|
Nice. The last secret of House Of The Dead is a pretty good ;)
mirror: House Of The Dead.
 
|
|
|
08:07 15. April 2011
| james1
| | Bangalore | |
| Member | posts 26 | |
|
|
can you help me how can install this pack. If possible means send video tutorial or PDF file format for installation process.
|
|
|
|
|
15:26 15. April 2011
| Woremochine
| | Port Charlotte, Florida, USA | |
| Member | posts 87 |   
|
|
|
As far as I can remember, it is just a file copy install. In otherwords, you just go through the folders, and copy EACH file to their appropriate folder, in you Painkiller Overdose directory (mine is in the directory like this "C:\Program Files\Painkiller\Painkiller Overdose") but usually it is as follows : "C:\Program Files\Dreamcatcher\Painkiller Overdose" (might be just Overdose, not sure)
Example : extract files and folders, then open folder SP_Houseofthedead, and copy files into your "C:\Pro…" etc.
If any of the folders from the download are not already in your directory, then just create them.
I am not realy sure, other than what I said, because it has been a while since I installed it. But, I still have it installed, and it works fine.
Ok, I hope this will be of help for you. 
|
|
|
|