billsy
Survivor
Keep living your life, with Zombrex
Posts: 66
|
Post by billsy on Jan 25, 2012 11:47:50 GMT -5
Made the mail packages that Carl Schliff (The Postman) uses against the player in the psychopath battle available to the player as a usable weapon. Open up items.txt and add the code below: cExplosiveItem PlayerPostmanMailbomb { ActionButton8 = "PLAYERBUTTON_THROW" ActionDesiredAnimState8 = "ANIMSTATE_THROW" AnimationAttackChooserValue8 = "4" AnimationChooserValueForIdle = "0" AnimationChooserValueForJump = "1" AnimationChooserValueForPickup = "0" AnimationChooserValueForPutdown = "0" AnimationChooserValueForThrow = "16" AnimationChooserValueForWalkRun = "0" AssetFilename = "data/models/weapons/mailbomb" AttackType = "11" AudioFilename = "fx_snipermailbomb" AudioItemName = "SniperMailbomb" AudioLoadDistanceType = "3" AudioUnloadDeferralTime = "4" BenchRestRotation = "0,0,0,1" CollidableQuality = "0" CollisionAudioDissipationFactor = "0.01" CollisionBits = "WORLDCOLLISIONFILTER_DYNAMIC_PROP" CollisionType = "3" DetonateOnThrow = "true" DetonationDelay = "1.5" DisplayName = "50304" DR2 = "true" Durability = "60" ExplodeRadius = "5" ExplosionAudioEffect = "1" ExplosionCausesExplosions = "true" ExplosionCausesImpulse = "true" Friction = "3" HandlingStyle = "0" ImpulseAtCenter = "200" ImpulseAtEdge = "100" InteractDistance = "1.2" InventoryInteractionType = "0" IsWeapon = "true" LoadDistance = "50" MaxDamage = "200" MaxDamageDealtPerAttack = "50" MergedFilename = "data/dynamicprops/mailbomb" PlayerInteractVisionAngle = "0" PropAudioType = "256" PropEffectLocator0 = "16" PropEffectLocator1 = "16" PropEffectLocatorIndex0 = "0" PropEffectLocatorIndex1 = "0" PropEffectsOnCondition0 = "13" PropEffectsOnCondition1 = "0" PyroEffect0 = "26" PyroEffect1 = "484" Restitution = "0.01" RestrictedByRegion = "false" Reticle_ActiveInRangeMode = "true" Reticle_Type = "1" SurvivorWeapon = "true" ThrowAngleDegrees = "1" ThrowForce = "10" WeaponType = "2" Weight = "9" } Open safehouse.txt and place the following:
cItemPlacement PlayerPostmanMailbomb { IsDispenser = "true" ItemName = "PlayerPostmanMailbomb" Location = "-0.700,-3.015,35.500" PropState = "-2" Rotation = "0.503,-0.502,-0.498,0.497" }
Brb, got to deliever some mail; neither rain nor sleet nor hail, nor zombies are going to keep me from my appointed rounds!
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jan 25, 2012 20:17:12 GMT -5
I see you took a liking to my Tactical M16.
|
|
|
Post by Freako on Jan 25, 2012 20:42:48 GMT -5
I see you took a liking to my Tactical M16. Nope. He put that one in himself.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jan 25, 2012 20:57:04 GMT -5
I see you took a liking to my Tactical M16. Nope. He put that one in himself. I still was the first person to actually implement it, albeit using a more crude method. But cool.
|
|
billsy
Survivor
Keep living your life, with Zombrex
Posts: 66
|
Post by billsy on Jan 26, 2012 9:32:00 GMT -5
I see you took a liking to my Tactical M16. It's one of my favourite weapons, the flashlight is pretty cool.
|
|
etrius0023
Veteran
You might just die...
Posts: 419
|
Post by etrius0023 on Jan 26, 2012 10:21:04 GMT -5
What was the tactical m16 used for???
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jan 26, 2012 13:16:35 GMT -5
What was the tactical m16 used for??? It's technically the Mercenary M16 from Case Zero, it was an NPC only weapon. The military used it when they arrived at Still Creek.
|
|
etrius0023
Veteran
You might just die...
Posts: 419
|
Post by etrius0023 on Jan 26, 2012 13:20:36 GMT -5
What was the tactical m16 used for??? It's technically the Mercenary M16 from Case Zero, it was an NPC only weapon. The military used it when they arrived at Still Creek. Ah thank you.
|
|
Jak
Survivor
My name is Jak. End of story.
Posts: 119
|
Post by Jak on Jul 25, 2013 12:17:19 GMT -5
Hey billsy, are these things stackable? Like can i have 20 mailbombs in one slot? If so, that would be AWESOME SAUCE!
|
|
billsy
Survivor
Keep living your life, with Zombrex
Posts: 66
|
Post by billsy on Jul 25, 2013 22:54:18 GMT -5
Hey billsy, are these things stackable? Like can i have 20 mailbombs in one slot? If so, that would be AWESOME SAUCE! Not sure, it's classed as an explosive (obviously) as oppose to a projectile, you could try changing it to a projectile and add in a line of code such as the following; numberOfThrowables = and then the amount you want. If you did this, I'm not sure how, if at all, the physics of the item would change given the alteration to the item category. But hey, if you don't try, you don't know, but that would be my first inquiry regarding the matter. So I'd advise to change "cExplosiveItem PlayerPostmanMailbomb" to "cProjectileLauncherItem PlayerPostmanMailbomb" and then add "NumberOfThrowables = "x"" with x being the number of throwables you want. Try it and get back to me, if not, I'll have a rethink. Have fun now!
|
|
Jak
Survivor
My name is Jak. End of story.
Posts: 119
|
Post by Jak on Jul 26, 2013 3:09:31 GMT -5
Hey billsy, are these things stackable? Like can i have 20 mailbombs in one slot? If so, that would be AWESOME SAUCE! Not sure, it's classed as an explosive (obviously) as oppose to a projectile, you could try changing it to a projectile and add in a line of code such as the following; numberOfThrowables = and then the amount you want. If you did this, I'm not sure how, if at all, the physics of the item would change given the alteration to the item category. But hey, if you don't try, you don't know, but that would be my first inquiry regarding the matter. So I'd advise to change "cExplosiveItem PlayerPostmanMailbomb" to "cProjectileLauncherItem PlayerPostmanMailbomb" and then add "NumberOfThrowables = "x"" with x being the number of throwables you want. Try it and get back to me, if not, I'll have a rethink. Have fun now! Hey billsy, i tried what you told me to do, and it LOOKED like it worked. It did say 99 throwables, but frank was unable to throw it however. I can aim, and he does get in the stance of when he is trying to throw it, but nothing happens, i spam the mouse, but no luck. Anyways this is still a great mod and thank you for your time to make something that entertains us all! Great job! EDIT: I tried doing the same for the molotov, but the same effect. Is there a line i must add or something? ~Uncle Spoods EDIT: I actually have this solution solved. But what i did required to replace an existing weapons abilities. I took the ray gun, then change the proptoshoot = dart TO proptoshoot = mailbomb, and it works so that pretty much sums it up
|
|
|
Post by john96 on May 20, 2023 5:57:19 GMT -5
How did you get the Case Zero M16 spawned with the icon? Mine just displayed a black box.
|
|