Jump to content

Welcome to our forums!

Sign In or Register to gain full access to our forums. By registering with us, you'll be able to discuss, share and private message with other members of our community.

Photo

[WIP] Xmod

2.9.9.16 professions mad science magic

  • Please log in to reply
40 replies to this topic

#1 RegularX

RegularX

    Fights Normality

  • Members
  • PipPipPip
  • 373 posts

Posted 18 August 2013 - 06:30 AM

So I'm wrapping up SICmod, which I tried very specifically to keep to stuff which I thought blended in to the vanilla game itself.  SICmod might make things a little easier in some ways, but nothing was over the top.

 

Xmod - Xmod should be over the top.  Balance schmalance.  If the weapon doesn't instakill - something is wrong (OK, near instakill.  Instakill is .... difficult post 9.15).  Did you read somewhere that a nail gun is a poor zombie weapon?  Don't care.  

 

Course, SICmod was a little easier because it played by the rules.  Most of the things in SICmod are based on something that already exists in the game somehow.  So I'm not really sure what can and can't be done here - but here's a proposed list:

 

 

Update: Changing some of the design based on general limitations and also approaching it from a more Profession-centric way.

 

XProfessions:

These will be professions selectable at the character create screen.

 

Former SMart Employee

-Sawed off Shotgun

-Plenty of Shells

-Copy of Necronomicon

 

Bonsai Chef

- Carbon Steel Knife

- Good with Knives Trait

- Full cooking XP

- Starts with plenty of canned food

 

Wandering Samurai

- Katana

- Good with Everything Trait

- Tiger Blood

- Various Physical traits

 

Evil Genius

- 10x MURDR Grenades

- 5x Romero’s Tonic

- 5x No Damage Tonic

- SUPR Pistol

 

Escaped Psychic

- Exploding Brain Wave Attack

- Various negative psych traits

- All good awareness traits

 

Shaolin Master

- Kung Fu

- Tiger Blood Trait

- Various positive physical traits

 

Hitman 42

- Silverballer

- Good with Everything Trait

- Way of the Gun Kata Trait

- Full Aiming XP

 

The Handyman

- Starts with every tools and lot of nails

- Full Carpentry XP

 

The Farmer

- Starts at a farm, with loads of gardening stuff

- Full Farming XP

 

 

 

XWeapons:

Very Rare (configurable) items

 

Necronomicon

Reading from the Necronomicon may destroy/injure nearby zoms.  Reading too much of it may be dangerous to your health...

 

Nail Gun

Uses nails in your inventory for ammo.  Moderately deadly, faily silent.

 

Katana / Carbon Steel Knife

Decent range, extremely durable. 

 

MURDR Nade

Designed specifically to harm zombies

 

SUPR Gun

Solar powered Undeath Ray pistol.  Dodgy when rainy.

 

Romero's Tonic

Cures everything.  Even dries you off.

 

No Damage Potion

For a short period, everything is healed instantly.

 

 

 

XTraits:

Free with an XProfession, otherwise quite expensive

 

Tiger Blood

Zombies don't scare you.  They might be scared of you.

 

Kung Fu

With your hands, who needs a chainsaw?

 

Good with Knives

You can attack continuously with a blade while aiming

 

Gun Kata

You can attack continuously with a pistol while aiming

 

Good With Everything

Any melee weapon in your hand is deadlier

 

Psychic

Your mind is a weapon

 

Really Handy

Full Carpentry XP

 

Gourmet Chef

Full Cooking XP

 

Master Green Thumb

Full Farming XP

 

 

Most of this I've got working in some capacity, but needs a lot of testing.  Won't release a build until after 9.17 comes out with the new modding framework.  

 

Due to some questions about how Xmod might be doing x or y (especially when it comes to efficiently killing zombies) - I'll go ahead and post a 9.16 friendly version.

 

Please note:

  • This code is untested
  • It's also kind of ugly and a bit shy.  It may well bite.
  • It may very well crash your game or corrupt your save.  You've been warned.
  • I'm only about half way through trying to "balance" the Professions.  By "balance" I mean somewhere leaning towards "wildly overpowered" while being knee deep in "still fun".  But don't complain if you pick a profession that starts of with a zombie cure, or by reading the Necronomicon too many times you find yourself suddenly infected (cough cough).
  • That said, please wait until after I can test this against at least 9.17 before commenting on things like "the Psychic is way overpowered".

 

Some of the tricks in this version which might be of note to other modders:

  • The KillAllZombies function in XWeapons will instakill all zombies in a radius.  The Necronomicon, MURDR Nade and Pyschic attack all use it.
  • If you look at the "KungFu" and "Psychic" related stuff, you'll see how you can override the default hand attack
  • The Silverballer weapon is my best effort so far to play nice with the ReloadManager.
  • XProfessions shows how to add your professions and control them without having to rewrite any existing Lua files.
  • Necromonicon and Romero's Tonic has some bits on curing/causing infection.  Necronomicon is untested, I think I added it around midnight last night.
  • The "attack while aiming" code might be curious to weapon mods, but again - very untested.  This is one bit that will probably need a lot of tweaking.

 

There is a strong chance that much of this might change post 9.17.

 

Fellow modders please feel free to grab, copy, paste, modify, outright steal or otherwise take advantage of the code.  Since none of this rewrites existing Lua, as long as you're putting it back into your own object/namespace there shouldn't be any conflicts.  All due credit, yada yada - more important if you're trying to do something fun with the game.  All I really ask is if you see that I'm doing something horribly wrong, or otherwise have a suggestion to improve X or Y let me know.

 

Feel free to shoot questions here or via PM.

 

Download link here:  http://xmod.herokuapp.com/Xmod.zip


  • kinyoshi, Kaptain Kallum and aidankiel like this
Ha, they said we were insane to do it. Insane! Now watch us levitating above the ground while making millions during holiday season. -- The_Real_Al

#2 kinyoshi

kinyoshi

    The "Mad Magpie" Modder

  • Members
  • PipPipPip
  • 688 posts

Posted 18 August 2013 - 06:32 AM

Can't wait for the sound effects in this :D.


With my Pistol Whipping Mod, you can add Kitten Knives to the Shotgun to make slice and dicing blunt weapons! Check it out!!

Check out my Project Zomboid Mods at PZ-Mods OR on the forums here in the Completed and WIP Sections!!!!


#3 RegularX

RegularX

    Fights Normality

  • Members
  • PipPipPip
  • 373 posts

Posted 18 August 2013 - 06:34 AM

Can't wait for the sound effects in this :D.

 

OMG can we add those?  That would be excellent.  Similar to textures maybe?


Ha, they said we were insane to do it. Insane! Now watch us levitating above the ground while making millions during holiday season. -- The_Real_Al

#4 kinyoshi

kinyoshi

    The "Mad Magpie" Modder

  • Members
  • PipPipPip
  • 688 posts

Posted 18 August 2013 - 06:36 AM

 

Can't wait for the sound effects in this :D.

 

OMG can we add those?  That would be excellent.  Similar to textures maybe?

 

 

RoboMat uses sounds in his Lockpicking Mod, for items, but it should work the same for weapons or similar..


With my Pistol Whipping Mod, you can add Kitten Knives to the Shotgun to make slice and dicing blunt weapons! Check it out!!

Check out my Project Zomboid Mods at PZ-Mods OR on the forums here in the Completed and WIP Sections!!!!


#5 Realmkeeper

Realmkeeper

    Knight Templar of the Awesome Explainations

  • Members
  • PipPipPip
  • 461 posts

Posted 18 August 2013 - 07:38 AM

 

 

Can't wait for the sound effects in this :D.

 

OMG can we add those?  That would be excellent.  Similar to textures maybe?

 

 

RoboMat uses sounds in his Lockpicking Mod, for items, but it should work the same for weapons or similar..

 

That's because RoboMat is a genius :P

 

Also, RegularX - have you ever been around a nailgun when someone is using it? It's usually best to wear earmuffs, especially if it's going to get a lot of use.



#6 kinyoshi

kinyoshi

    The "Mad Magpie" Modder

  • Members
  • PipPipPip
  • 688 posts

Posted 18 August 2013 - 07:43 AM

 

 

 

Can't wait for the sound effects in this :D.

 

OMG can we add those?  That would be excellent.  Similar to textures maybe?

 

 

RoboMat uses sounds in his Lockpicking Mod, for items, but it should work the same for weapons or similar..

 

That's because RoboMat is a genius :P

 

Also, RegularX - have you ever been around a nailgun when someone is using it? It's usually best to wear earmuffs, especially if it's going to get a lot of use.

 

 


  • RegularX likes this

With my Pistol Whipping Mod, you can add Kitten Knives to the Shotgun to make slice and dicing blunt weapons! Check it out!!

Check out my Project Zomboid Mods at PZ-Mods OR on the forums here in the Completed and WIP Sections!!!!


#7 RegularX

RegularX

    Fights Normality

  • Members
  • PipPipPip
  • 373 posts

Posted 18 August 2013 - 08:05 AM

 

 

Also, RegularX - have you ever been around a nailgun when someone is using it? It's usually best to wear earmuffs, especially if it's going to get a lot of use.

 

 

 

You might need to re-read the first couple of paragraphs ;)


Ha, they said we were insane to do it. Insane! Now watch us levitating above the ground while making millions during holiday season. -- The_Real_Al

#8 johndough

johndough

    Advanced Member

  • Members
  • PipPipPip
  • 74 posts

Posted 18 August 2013 - 08:27 AM

Sound effects are easy. You just need to put them in the sound directory and make calls to getSoundManager():PlayWorldSound() and getSoundManager():StopSound() for the basic stuff.


  • RegularX likes this

#9 RoboMat

RoboMat

    Moderator of Wheelie-Bins

  • Moderators
  • PipPipPip
  • 2960 posts

Posted 18 August 2013 - 09:10 AM

Sound effects are easy. You just need to put them in the sound directory and make calls to getSoundManager():PlayWorldSound() and getSoundManager():StopSound() for the basic stuff.


Actually you only need StopSound() when you want to stop it early, or stop a looped sound. The problem with it is, that StopSound() seems to stop working when there are multiple sound calls. Have you experienced the same john?

“Shallow men believe in luck or in circumstance. Strong men believe in ZombRand().” ― RoboMat W. Emerson
Check out my mods on pz-mods.net.


#10 johndough

johndough

    Advanced Member

  • Members
  • PipPipPip
  • 74 posts

Posted 18 August 2013 - 09:28 AM

 

Sound effects are easy. You just need to put them in the sound directory and make calls to getSoundManager():PlayWorldSound() and getSoundManager():StopSound() for the basic stuff.


Actually you only need StopSound() when you want to stop it early, or stop a looped sound. The problem with it is, that StopSound() seems to stop working when there are multiple sound calls. Have you experienced the same john?

 

 

I have experienced some problems with my scrubbing sounds not stopping, sometimes. I haven't figured out what is causing this yet. I only have one sound playing at any given time.



#11 Aricane

Aricane

    Eater of the Stone

  • Members
  • PipPipPip
  • 435 posts

Posted 18 August 2013 - 11:43 AM

The pillowsilencer uses custom weapon sounds



#12 RegularX

RegularX

    Fights Normality

  • Members
  • PipPipPip
  • 373 posts

Posted 18 August 2013 - 08:18 PM

Will def look into custom sounds.

 

Anyone know if the texture trick works for weapon sprites?


Ha, they said we were insane to do it. Insane! Now watch us levitating above the ground while making millions during holiday season. -- The_Real_Al

#13 RoboMat

RoboMat

    Moderator of Wheelie-Bins

  • Moderators
  • PipPipPip
  • 2960 posts

Posted 18 August 2013 - 10:38 PM

Will def look into custom sounds.
 
Anyone know if the texture trick works for weapon sprites?


You mean the ones when holding a weapon? I hardly doubt that :/

“Shallow men believe in luck or in circumstance. Strong men believe in ZombRand().” ― RoboMat W. Emerson
Check out my mods on pz-mods.net.


#14 RegularX

RegularX

    Fights Normality

  • Members
  • PipPipPip
  • 373 posts

Posted 19 August 2013 - 04:43 AM

Yeah, I'll experiment next week - but I'm not hopeful either.  I think the stock shotgun sprite is still busted in anim, so getting a custom one might be tricky.

 

I have a feasible Chainsaw, but it kinda looks like the world's best kitten knife at the moment....


Ha, they said we were insane to do it. Insane! Now watch us levitating above the ground while making millions during holiday season. -- The_Real_Al

#15 RegularX

RegularX

    Fights Normality

  • Members
  • PipPipPip
  • 373 posts

Posted 19 August 2013 - 06:14 AM

(see OP)


Ha, they said we were insane to do it. Insane! Now watch us levitating above the ground while making millions during holiday season. -- The_Real_Al

#16 RegularX

RegularX

    Fights Normality

  • Members
  • PipPipPip
  • 373 posts

Posted 19 August 2013 - 07:10 PM

Yeah, just tried the sprite trick - does not seem to work for WeaponSprite.  Unless there's something specific like dimensions or naming I'm not doing, since I tested just using the Beer Can image from SICmod.


Ha, they said we were insane to do it. Insane! Now watch us levitating above the ground while making millions during holiday season. -- The_Real_Al

#17 RegularX

RegularX

    Fights Normality

  • Members
  • PipPipPip
  • 373 posts

Posted 30 August 2013 - 04:16 PM

OK, I have a test build up for download - but please read the OP (you can scroll down to the bottom) for all the caveats included within.  This is more for people wanting to poke at the code and less for actual testing.


  • RoboMat likes this
Ha, they said we were insane to do it. Insane! Now watch us levitating above the ground while making millions during holiday season. -- The_Real_Al

#18 RoboMat

RoboMat

    Moderator of Wheelie-Bins

  • Moderators
  • PipPipPip
  • 2960 posts

Posted 30 August 2013 - 04:27 PM

Well fuck yeah ... I'm gonna test this beauty when I get back home tomorrow :o


  • RegularX likes this

“Shallow men believe in luck or in circumstance. Strong men believe in ZombRand().” ― RoboMat W. Emerson
Check out my mods on pz-mods.net.


#19 RegularX

RegularX

    Fights Normality

  • Members
  • PipPipPip
  • 373 posts

Posted 30 August 2013 - 04:37 PM

Well fuck yeah ... I'm gonna test this beauty when I get back home tomorrow :o

 

Achievement Unlocked: Made a Moderator Swear  ;)

 

And I don't know about beauty - but stuff will blow up...


  • Cl0nec0mmand0 likes this
Ha, they said we were insane to do it. Insane! Now watch us levitating above the ground while making millions during holiday season. -- The_Real_Al

#20 RoboMat

RoboMat

    Moderator of Wheelie-Bins

  • Moderators
  • PipPipPip
  • 2960 posts

Posted 30 August 2013 - 04:44 PM

I stopped reading after Necronomicon and went straight to "swear-mode" instead.


  • RegularX likes this

“Shallow men believe in luck or in circumstance. Strong men believe in ZombRand().” ― RoboMat W. Emerson
Check out my mods on pz-mods.net.






Also tagged with one or more of these keywords: 2.9.9.16, professions, mad science, magic