Separate names with a comma.
Discussion in 'Fallout General Modding' started by Mario_Dweller, Jul 2, 2006.
How to create item(gun) with no ammo ?
You might want to be more specific about that.
On the map? In the inventory? With a script? With a script on the map?
I guess the simplest way would be via script ?
I just want to give player a gun with no ammo. So in inventory...
Sorry, but as far as I know you Fo2 engine can not spawn weapons with no ammo. Apart from shooting bullets the only thing that can unload a weapon is a critical miss...
Now, that was funny!
Yeah, I thought it... Thanx.
So and how to achieve critical miss DAM_LOSE_AMMO ?
I tried this
but it works only with DAM_BLIND, AM_CRIP_LEG_LEFT, etc.
One way might be to place an empty gun in a designated container (like the shop inventories or temp boxes), then move it into the player's inventory at the proper time. Don't ask me about the details, though.
place an empty gun . And where do I get it ?
You *could* try something like this (I can guarantee no success):
Spawn the weapon via script WHILE the PC is in a conversation (remember that containers CAN start a conversation, well, kinda...).
Have your script do so:
1 Check if dude helds a weapon in the active slot.
2 Spawn the weapon in dude's inventory.
3 Have dude wield the weapon.
4 Injure dude with the DAM_LOSE_AMMO bit.
5 Have dude holster the empty weapon and put in his/her hand the previous weapon (if there was any).
Again, I really don't know if this can work. This is all I could think of, sorry.
When I did the only playable map I ever did, I wanted to put an item with a script attached inside a container, but the mapper only lets you attach scripts to items lying freely. So I put the script on an item, entered playtesting mode, took the item with the in-game character and placed it in the proper container. I don't remember exactly how it worked out, but the end result was that the item was in the container with script and all. So maybe you could put a gun in the mapper, empty it manually, then place it in a container for safekeeping.
Yes, U'r right, that might be the best solution. So I succesfully unloaded the gun, dropped it and saved game. Then I renamed .SAV file to .MAP file and the result is map with unloaded gun on the ground...
Than U all 4 your time...
So it can be done? And in such simple way!!
That was really brilliant, Per.