AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   VSH / Freak Fortress (https://forums.alliedmods.net/forumdisplay.php?f=154)
-   -   VSH Versus Saxton Hale 1.55 - New Saxton Hale + Vagineer Models! (https://forums.alliedmods.net/showthread.php?t=244209)

Wliu 07-15-2014 18:44

Re: Versus Saxton Hale 1.43 - Now with collaboration! (Last updated 7/15/2014)
 
Quote:

Originally Posted by Chdata (Post 2168364)
Not exactly insta-kill.

If Hale is less than or equal to 1024 HP, it can insta kill him instead of leaving him at 1 HP (which used to happen because the mantread damage was handled in player_hurt instead of ontakedamage).

Yeah I know the wording is off though.

Edit: * Mantread stomps now OHKO Hale instead of leaving him at 1 health when his health is less than the damage mantreads do (1024 dmg).

I suppose I'll look up github tuts or w/e. Then I can add nergal's FRoG. Not the healthbar thing if it's another plugin already, but I added that to optional installations in the op.

All right, that makes much more sense :P.

As for learning Github, they have a great set of tutorials.

nergal 07-15-2014 18:51

Re: Versus Saxton Hale 1.43 - Now with collaboration! (Last updated 7/15/2014)
 
another thing, I think rocket launchers should have no damage fall off

PHP Code:

    decl Float:Pos[3];
    
decl Float:Pos2[3];
    
GetEntPropVector(attackerProp_Send"m_vecOrigin"Pos);//Spot of attacker
    
GetEntPropVector(clientProp_Send"m_vecOrigin"Pos2); //Spot of victim
    
new Float:dist GetVectorDistance(PosPos2false); //Calculates the distance between target and attacker
    
new String:classname[64];
    if (
IsValidEdict(weapon)) GetEdictClassname(weaponclassnamesizeof(classname));
if (
strcmp(classname"tf_weapon_rocketlauncher"false) == || strncmp(classname"tf_weapon_flaregun"18false) == 0)
                {
                    if (
dist 966.03dist 966.03;
                    if (
dist 512.0dist 512.0;
                    
damage *= dist/512.0;
                    return 
Plugin_Changed;
                } 

Also, code for Market Gardener should be included as well.

PHP Code:

    HookEvent("rocket_jump"OnRocketJump);
    
HookEvent("rocket_jump_landed"OnJumpLanded);


public 
Action:OnRocketJump(Handle:event, const String:name[], bool:dontBroadcast)
{
    if (!
Enabled) return Plugin_Continue;
    new 
client GetClientOfUserId(GetEventInt(event"userid"));
    
g_bInJump[client] = true;
    return 
Plugin_Continue;
}
public 
Action:OnJumpLanded(Handle:event, const String:name[], bool:dontBroadcast)
{
    if (!
Enabled) return Plugin_Continue;
    new 
client GetClientOfUserId(GetEventInt(event"userid"));
    
g_bInJump[client] = false;
    return 
Plugin_Continue;
}



                    case 
416//market gardener
                    
{
                        if (!(
GetEntityFlags(attacker) & FL_ONGROUND) && g_bInJump[attacker])
                        {
                            new 
Float:changedamage HaleHealthMax 0.025;

                            
Damage[attacker] += RoundFloat(changedamage);

                            
damage changedamage;

                            
HaleHealth -= RoundFloat(changedamage);
                            
HaleRage += RoundFloat(changedamage);

                            
HaleRage = (HaleRage RageDMG) ? RageDMG HaleRage;
                            return 
Plugin_Changed;
                        }
                    } 


Chdata 07-15-2014 19:03

Re: Versus Saxton Hale 1.43 - Now with collaboration! (Last updated 7/15/2014)
 
I also have a market gardener code. (Below is only part of it).

The commented out line pertains to Soldier rocket jumping, getting stuck in HHH, and being able to "multi-backstab" the boss. I think it's commented out because it's either not working, or because I removed clipping from HHH for 2-4 seconds after he teleports unless it's a scout.

Also the damage is balanced around being weaker than backstabs (for various reasons).

There's also code to remove crits from the market gardener.

(dat 2.25% though... 51 damage solo? nope)

PHP Code:

case 416:           //Market Gardener
                    
{
                        if (
GetRJFlag(attacker))
                        {
                            
//if ((GetEntProp(client, Prop_Send, "m_iStunFlags") & TF_STUNFLAGS_GHOSTSCARE | TF_STUNFLAG_NOSOUNDOREFFECT) && Special == VSHSpecial_HHH) return Plugin_Continue;

                            
damage = (Pow(float(HaleHealthMax), (0.74074)) + 512.0 - (Marketed/128*float(HaleHealthMax)) )/3.0;    //divide by 3 because this is basedamage and lolcrits (0.714286)) + 1024.0)
                            
damagetype |= DMG_CRIT;

                            if (
Marketed 5Marketed++;

                            
PrintCenterText(attacker, (Special == VSHSpecial_Nue) ? "You market gardened her!" "You market gardened him!");
                            
PrintCenterText(client"You were just market gardened!");

                            
EmitSoundToClient(client"player/doubledonk.wav"__SNDLEVEL_TRAFFICSND_NOFLAGS0.6100_PosNULL_VECTORfalse0.0);
                            
EmitSoundToClient(attacker"player/doubledonk.wav"__SNDLEVEL_TRAFFICSND_NOFLAGS0.6100_PosNULL_VECTORfalse0.0);

                            return 
Plugin_Changed;
                        }
                    } 


nergal 07-15-2014 19:13

Re: Versus Saxton Hale 1.43 - Now with collaboration! (Last updated 7/15/2014)
 
Quote:

Originally Posted by Chdata (Post 2168383)
I also have a market gardener code. (Below is only part of it).

The commented out line pertains to Soldier rocket jumping, getting stuck in HHH, and being able to "multi-backstab" the boss. I think it's commented out because it's either not working, or because I removed clipping from HHH for 2-4 seconds after he teleports unless it's a scout.

Also the damage is balanced around being weaker than backstabs (for various reasons).

There's also code to remove crits from the market gardener.

(dat 2.25% though... 51 damage solo? nope)

PHP Code:

case 416:           //Market Gardener
                    
{
                        if (
GetRJFlag(attacker))
                        {
                            
//if ((GetEntProp(client, Prop_Send, "m_iStunFlags") & TF_STUNFLAGS_GHOSTSCARE | TF_STUNFLAG_NOSOUNDOREFFECT) && Special == VSHSpecial_HHH) return Plugin_Continue;

                            
damage = (Pow(float(HaleHealthMax), (0.74074)) + 512.0 - (Marketed/128*float(HaleHealthMax)) )/3.0;    //divide by 3 because this is basedamage and lolcrits (0.714286)) + 1024.0)
                            
damagetype |= DMG_CRIT;

                            if (
Marketed 5Marketed++;

                            
PrintCenterText(attacker, (Special == VSHSpecial_Nue) ? "You market gardened her!" "You market gardened him!");
                            
PrintCenterText(client"You were just market gardened!");

                            
EmitSoundToClient(client"player/doubledonk.wav"__SNDLEVEL_TRAFFICSND_NOFLAGS0.6100_PosNULL_VECTORfalse0.0);
                            
EmitSoundToClient(attacker"player/doubledonk.wav"__SNDLEVEL_TRAFFICSND_NOFLAGS0.6100_PosNULL_VECTORfalse0.0);

                            return 
Plugin_Changed;
                        }
                    } 


2.25% damage cuz

market gardener is melee so always crit :3 = constant 195

say hale had 30k hp = 30k * 0.025 * 3(cuz crit) = 2250

Chdata 07-15-2014 19:14

Re: Versus Saxton Hale 1.43 - Now with collaboration! (Last updated 7/15/2014)
 
Mines starts at like 700 damage and ends at like 2200 or so, maybe it was 3200. Dat 1v1 market garden yo.

I made market gardener not always crit on my server and only crit on the market garden.

If anyone has a server and can test this plugin btw, please add me on steam.

Chdata 07-16-2014 00:04

Re: Versus Saxton Hale 1.44 - Now with collaboration! (Last updated 7/15/2014)
 
Managed to test some things on someone's server. Most is all good.

Updated to 1.44. OP edited with recent changes list.

Updates may or may not start coming in fast, I'll try to save it for big updates altogether though.

Advokat 07-16-2014 05:54

Re: Versus Saxton Hale 1.44 - Now with collaboration! (Last updated 7/15/2014)
 
I think Spy backstabs count as double damage for medics that are healing them though I haven't tested it extensively.

Wliu 07-16-2014 08:32

Re: Versus Saxton Hale 1.44 - Now with collaboration! (Last updated 7/15/2014)
 
EDIT: Never mind, poked around in the source file.
Though are you sure it's a good idea to put the Air Strike code in ClientTimer?

Chdata 07-16-2014 11:20

Re: Versus Saxton Hale 1.44 - Now with collaboration! (Last updated 7/15/2014)
 
Yeah that is unnecessary on my part. I didn't think about placement when nergal sent that. I'll move it to player_hurt.

I think I see why medics get double from backstabs and will look into that after college.

nergal 07-16-2014 18:42

Re: Versus Saxton Hale 1.44 - Now with collaboration! (Last updated 7/16/2014)
 
1 Attachment(s)
I'd like to make another contribution to plugin by asking for THIS new boss to be added :>

Introducing RoboHale!

complete with models+texture AND all Saxton Hale voice clips converted to robotic sound

on my server, i only have him merely as a saxton hale reskin/clone but with different model and sounds.

here's files

https://drive.google.com/file/d/0B3F...it?usp=sharing


All times are GMT -4. The time now is 18:15.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.