Questions about information taken from the source code

Want to talk about war3ft or make suggestions? Post them here

Moderator: Forum Moderator

Post Reply
Celofan
Peon
Posts: 2
Joined: Tue Nov 15, 2005 8:50 pm

Questions about information taken from the source code

Post by Celofan »

Foreground:
I tried searching the forum beforehand. Also searched myself silly on Google without any success, so now here I am. (Actually the information I found via Google seems to be just wrong in the cases I found any. Anyhow...)

Background:
I've been playing the wc3ft-mod for quite some time now and became curious by the lack of information on the odds of activation and damage on the various races' abilities -the crypt lords impale and the carrion beetles specifically.
So I downloaded the http://wc3mods.net/war3ft/downloads/amx ... v2.2.7.zip file and started poking around in the code to see if I could find some tidbits. I found some information that seems to be what I'm looking for but I need a little help interpreting it to understand it better.}

So here are my questions more specifically: ("Well duh"-ones I suppose, but humor me please :wink: Ill try to be as specific as I can.)

In the constants.inl file there is the line (on row 714):
new const Float:p_impale[3] = {0.03,0.06,0.09}
Does this mean that the chance of activation of the impale-skill at the various levels are 3%, 6% and 9% respectively?

On rows 511 & 512 in the "call_damage" function in the events.inl file it sais:
tempdamage = 10
WAR3_damage(victim, attacker,tempdamage, CSW_CARRION, hitplace)

Does this mean that the base-damage dealt from the beetles is "10" ( like the damage from "locust swarm is "35") and then goes to get modified by armour and what-not?

Does the information in the file refered to by the link above specific to the CZ version of counter-strike or is the same installer file used for both the CZ and "regular" versions? (and if no- what are the odds and damages from the impale and carrion beetle attack in the "normal"-cs wc3ft mod?) (I'm not playing the CZ version see, so I might have wasted my and your time asking and looking for this.)

Thank you in advance
/Sincerely, Johan
User avatar
Geesu
<b>King of the world!</b>
Posts: 3160
Joined: Tue Jul 05, 2005 9:24 pm
Contact:

Post by Geesu »

Yes, yes, and that version works the same for CS and CZ (there are no differences in the code for CS and CZ, they are interpreted the same)

Also, where you looking to change some things around in the code? Asking the question here first might have saved you a few hours looking around :P
No Support via PM
Celofan
Peon
Posts: 2
Joined: Tue Nov 15, 2005 8:50 pm

Post by Celofan »

Thanks for the speedy reply :)
No I was actually only after those bits of information since it was nowhere else to be found. Also, why spoil a few hours of fun asking for something when you can spend them poking around in someones code looking for it and learning a bunch of other things meanwhile? :P Isn't poking around in code a bunch of fun in itself? :wink:
(I think I'll probably be doing more poking later, getting to know more of the inner workings of it :P )
Thanks for a frikken nice mod! :D
Post Reply