Jump to content

Help for coding. :S


Recommended Posts

Posted

I am really at good poin, i need only to edit by class the effects of Heal and Mindtrick, and customize the sound of the effects changed and i end! :D after i realease all my edits! :D

Posted

Yay i am near to the end of my work! soon i share my edit code with all community! :) i hope someone can use for mod with fantasy contest about JKA. :)

Posted

Okay, men here there is ALL my code editing about the Legacy of Kain necessity.

I hope someone can use all this thing for their personal necessity on other modding project.

here is that:

 

New weapon list:

WP_SABER: sword, reavers, shield and glyphes

WP_BLASTER_PISTOL: ball of darkness.

WP_BLASTER: fireballs

WP_DISRUPTOR: first shot: spirith death (kill istantly and separe soul by body) alt fire: immolation "burn enemy and disgregate the body.

WP_BOWCASTER: lightballs

WP_REPEATER: water \ ice Bolt, also use for Rahaim hydrocinesis.

WP_FLECHETTE: earth bolt. i hacked the code for shooting only 1 stone projectile instead of six in the primary attack.

WP_DEMP2: spirit bolt, huge damage on demon and vampires and monster, low damage on sarafan and sacred warrior and mortal creature.

WP_CONCUSSION: at moment is for the stun and incapacitate spell, but i can use mindtrick and mindtrickscript on map about that so... maybe i edit for make a sonic spell with sonic shocwave?

WP_ROCKET: exposive air ball

WP_THERMAL: fire glyph grenades

WP_TRIPMINE: plant that explode impaling enemyt, and sound sonic mine: explode stunning the enemy.

DETPACK: stone glyph bomb, explode with a quake and paralysis on near enemies. i will what that someone explain me how to make the freeze code for end that.

WP_JAWA:: sonic shoot.

WP_TUSKEN_RIFLE: a bowcaster with fire arrows for human against vampires.

WP_BRYAR_PISTOL a bow with sonic and light arrows.

WP_ATST_ MAIN: huge lightning shoot. only NPC and demons

WP_ATST_SIDE: primary attack: shoot demon hell fireball. secondary attack: shoot the huge energy balls of the Elder God.

 

About Force Power:

CORE POWER:

FP_PUSH: cinetic bolt.

liv 1: weak

liv 2: medium

liv 3: frontal shockwave

FP_PULL: telekinesis

LIV 1: weak attaction

Liv 2: disarm weak enemies

Livr 3: high suck attack. enemy fall on the platyer.

editi: i make more transparent the pushblur.

FP_JUMP

liv 1: a little powered jump

liv 2: vampire and reavers standard jump ability

liv 3: Kain blood omen 2 \ defiance Jump.

I deleted jump sound, the jump sound is mixed with voice characters on sound\chars\  folders, and so everyone can make a customize juimp: vampire play their voice, mixed with the sound of the spell. reaver not play the sound ofthe spell but a flap sound of their wings. :)

FP_SPEED:

slow time for enemy  , acceleraion for vampires. i not make change

FP_GRIP: grab, choke and move the eenemy, is the telekinesis of Defiance of Kain and Turel. i changed color of the blur aura into green, like into Defiance.

FP_HEAL \ FP_DRAIN \ FP_RAGE: customize effect at second of classes of user: so the heal of the human is a white magic of sarafan chierics, the heal of vampires a read aurea, the heal of reavert the divouring of soul, and so away.

FP_DRAIN: customization of effecy by CLASS: for vampire, drain the blood, for the reavers, drain the soul, etc.

FP_LIGHTNING: every class now shoot a different elemental attack! :D dozen of new lightbning force effects! Yeah! :D

There is all edit list:

all start in weapons.H

for players: i edited the value on weapons.dat.

here, there is the speed, dmg etc of NPC about the weapons. weapons.dat edit ONLY player damage, NOT the NPC weapons damage. here the new settings:

 

  Reveal hidden contents

 

The second change was one of the more hardest: on G_combat, edit all weapons class damage at second of class on monster hitted by weapons, that's part is very long and strong to edit. but know JKA in my code is like a fantasy RPG: every class has elemental resistance and weakness. :)

line 5754 of G_COMBAT.cpp

 

 

  Reveal hidden contents

 

that add also a saber resistance to all my golems and stone monster class and some class are immune to Noghri_stick. the funmny thing is that CLASS_DESANN, that i want to use for thre Hylden King, now is invincible to saber and to all attacks. i never understan dwhy. howeber, with this code, you can make a lot of modification: for example: some weapons deadly for the sith and unuseful against jedi, and so away. :)

That's all for Code about weapons, next post: the code of Force Power.

Posted

Okay, i begin with the arcane magic effects:

first step: on cg_media add the definition of the new effects:

 

 

shader change:

1: changing RGB color of push, pull and grip: simply edit this i setted low gray value for push and pull and the green for the grip:

 

  Reveal hidden contents

 

and so, make list of all particellar efx you need.

Now, on CG_weapons.cpp registered the effects with address. also need to register the sound, but i have not much clear how to make. i also registered the effect of heal, fury and mindtrick.

 

  Reveal hidden contents

 

Now for the specific edit of the power by class is kinda complicated. about lightning and draining the code is really hard, more easy is about heal, rage, protect, absorb, mindtrick and sight.

On cg_players.cpp, you can edit the sight, protect, absorb, lightning and drain effects power. for heal, rage, push, pull grip and mindtrick, all the code is in wp_saber.cpp, also the working of all force power effects, are into wp_saber.cpp.

okay. that's is my lightning new code!

first, i silent on line 8404 the mindtrick effect code, because i not want intereference about the effect of Confusion, it working however.

 

  Reveal hidden contents

second time, here the lightning class effect, is VEEEERY LONG.

 

  Reveal hidden contents

 

Very careful about the branks, or you get strange problems XD at the startt of time, i wrong the branks open\cleasure and i got some funny thing, like no visual efx on power 1 and 2 and the efx of power 1 and 2 of lightning... played with effects lightning level 3... togeher! O.o

you can notice the effect is played 3 times: two times for the two hand of the force_lightning level 3 and the third time for the left end about level 1 and 2.

Now for the force drain, same thing of the lightning.

 

  Reveal hidden contents

 

and that's is for force drain and lightning. In the third post i show you the other effects. :)

Posted

Okay, here the protect and absorb code for edit the RGB color of the shader:

thanks to @@Serenity937 for all suggest! :D

 

  Reveal hidden contents

 

here i follow Serenity indication, i make thirst sight, and later protect and absorb, with FP_SIGHT, i learn the tecnique.

 

  Reveal hidden contents

 

Posted

Changing force Push \ Pull \ Grip color shadering:

line 4480 of cg_players.cpp

 

  Reveal hidden contents

 

About force heal: you can customize effect on wp_saber.cpp on line 10023

 

  Reveal hidden contents

 



			
		
Posted

For the end, Rage work with same procedure:
line 13137

 

  Reveal hidden contents

 

special thanks to:

@@ent

@@Serenity937

@@Raz0r

@@eezstreet

Serenity937 and Keyten like this

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...