PDA

View Full Version : Help with Poison Ivy and Wolverine


123
07-31-2004, 09:30
Hey.

How can I edit the heroes Poison Ivy and Wolverine, so loose/gain more HP as higer level ppl become ?
If forexample:
Player 1 is level 3. Then Poison Ivy takes 3 hp each sec (or how often it is) from the vicktims, and Wolverine heals Player 1 with 3 HP per sec.

Player 2 is level 9. Then Poison Ivy takes 9 hp each sec (or how often it is) from the vicktims, and Wolverine heals Player 2 with 9 HP per sec.

And so on... So they loose/gain as much HP as they are level'd.

Do you get me or is my engkish all bad ???

vittu
07-31-2004, 12:40
what is www.sh-mod.tk

you trying to remake shshack.tk?

Freecode
07-31-2004, 12:44
what is www.sh-mod.tk

you trying to remake shshack.tk?

ill tell you what it is.
Its a horrible orange looking site thats is horribly coded in php and takes 20 minuts to load. :D

123
07-31-2004, 12:49
LoL...

vittu
-> Yes it is kind of the same thing as shshack.tk

Freecode
-> The reason, that it takes "20" minuts to load is because of the .tk domain.
And I think that the design is nice...

PS. It is not finished yet

Freecode
-> Chexk you PM post...

And could you maybe talk about the topic and not all the other things ?

Freecode
07-31-2004, 13:02
whats the reason for the site when you have this official site?

http://forums.alliedmods.net/showthread.php?p=258458#1431

123
07-31-2004, 13:09
Ok sry...
But can you then answer the topic question ?
Or someone else can ?

Freecode
07-31-2004, 13:13
u need to be pretty good in coding to do that. :|

123
07-31-2004, 13:24
Well...
On my site, I have made a script like yours, so the Users can upload a hero to the collection, and add a description to it.
Im just now sitting and coding on giving points for uploading the heroes...
But I can't figure it out... :oops:

vittu
07-31-2004, 13:27
jtp can tell you that that is really a lot of work to do and not worth trying unless you know what you are doing....


everyone should know by now freecode doesn't answer pm, instant messages, emails regarding "help me" topics so don't bother... besides that's what these forums are for. :P

123
07-31-2004, 13:30
I don't think that it is a lot of work to do.
I have seen it on pretty many servers...
I think that it is something to change in the .sma file, but I can't find the place.

Freecode
07-31-2004, 15:45
no it will be a change to the superhero mod file a pretty big change and i guarantee you that not many servers have it if non at all.

123
07-31-2004, 17:07
Well...
Check out this server forexample:
213.112.183.19:27015
It is on that...

vittu
07-31-2004, 17:36
well go ask them what they did and let us know - http://scw.mine.nu/

123
07-31-2004, 17:37
I already have...
But he does not answer...

123
07-31-2004, 18:12
Ok...
Now mine are like that too...
I got his .amx files
I think that he had a different version of the heroes.

Another question:
How can I decide which levels the heroes are avalible in ?
Isn't it in the hero.sma file ?

123
07-31-2004, 18:15
Oh I forgot...
If you want this version of the 2 heroes, the download them at www.sh-mod.tk :lol:

Or here:

jtp10181
07-31-2004, 18:31
shconfig.cfg

open in notepad....

be amazed

123
08-01-2004, 14:33
Okay...
Sorry that I didn't know that, it was just that when I installed my shero mod, there were no file called that, but after I got the 1.17 there were a file called that, but I had not notised that...

BlueRaja
08-02-2004, 03:56
I'm confused...I don't think it would really be that tough at all to code

Just need to find out the level of the player (or the attacker, in the case of poison ivy...if I correctly understand what you're trying to say) and place it in a variable. Then use that variable in place of the cvar that normally controls how much damage a player takes/receives...

I don't really know how to program for sh or amx (I've tried recoding one thing, although even that didn't work; jtp ended up doing it for me :( ), but I don't think it's that hard to find out the level of the player. Captian America seemed to do it pretty easily...

PM
08-03-2004, 07:39
How about .sma file for your new poison ivy and wolverine? or i just have to put that .amx file in my plugins map? But how can i then set how many extra damage does poison ivy take for each level?

BlueRaja
08-03-2004, 07:53
How about .sma file for your new poison ivy and wolverine? or i just have to put that .amx file in my plugins map? But how can i then set how many extra damage does poison ivy take for each level?
Create a cvar; say, for example, poisonivy_damage
Then the damage would be
GET_CVAR_NUM("poisonivy_damage") * level
Where "GET_CVAR_NUM" is the name of the function that returns the value of a cvar (don't know if that's the correct name), "poisonivy_damage" is your damage per level cvar, and "level" you have to set to the level of the character (see sh_captaina.sma)

Not much of a help, am I? :P

vittu
08-03-2004, 07:53
How about .sma file for your new poison ivy and wolverine? or i just have to put that .amx file in my plugins map? But how can i then set how many extra damage does poison ivy take for each level?look in shconfig.cfg for cvars maybe...

123
08-03-2004, 10:08
Just overwrite the existing .amx file, and it should work...