Raised This Month: $32 Target: $400
 8% 

[TF2] Yet Another Dodgeball Plugin v1.4.1 (1/19/2019)


Post New Thread Reply   
 
Thread Tools Display Modes
pear
Member
Join Date: May 2017
Location: sea
Old 07-18-2017 , 04:09   Re: [TF2] Yet Another Dodgeball Plugin (Reborn)
Reply With Quote #21

Quote:
Originally Posted by SnowTigerVidz View Post
Huh, I better check on that, Thanks!

Edit : Try the new version
Tested it again and the large mph number is fixed but it's still showing the clientindex that killed me instead of the actual name.

if(GetConVarBool(g_hCvarAnnounceKill)) CPrintToChatAll("\x05%N\01 died to \x05%i\x01", g_iLastDeadClient, killer);

Take in mind that if you change it to %N and the starting rocket kills you it will display "died to Console".

Last edited by pear; 07-18-2017 at 04:10.
pear is offline
pear
Member
Join Date: May 2017
Location: sea
Old 07-18-2017 , 05:13   Re: [TF2] Yet Another Dodgeball Plugin (Reborn)
Reply With Quote #22

Quote:
Originally Posted by TitanTF View Post
Can I suggest adding a no stealing system? For eg. a player can steal a max of 3 rockets (3 strikes) and after using 3 strikes he is slayed immediately.
Quote:
Originally Posted by SnowTigerVidz View Post
I'll work on that,
PHP Code:
//Stealcounter
int g_stolen[MAXPLAYERS 1]; 
Put StolenRocket(iClient, iTarget); in HomingRocketThink:
PHP Code:
// Calculate new direction from the player's forward
        
int iClient GetEntPropEnt(iEntityProp_Send"m_hOwnerEntity");
        if (
IsValidClient(iClient))
        {
            
float fViewAngles[3], fDirection[3];
            
GetClientEyeAngles(iClientfViewAngles);
            
GetAngleVectors(fViewAnglesfDirectionNULL_VECTORNULL_VECTOR);
            
CopyVectors(fDirectiong_fRocketDirection[iIndex]);
            
UpdateRocketSkin(iEntityiTeamTestFlags(iFlagsRocketFlag_IsNeutral));
            
StolenRocket(iClientiTarget); // <--------- here
        

and add this:
PHP Code:
stock void StolenRocket(int iClientint iTarget
{
    if (
iTarget != iClient) {
        
PrintToChatAll("\x03%N\x01 stole \x03%N\x01's rocket!"iClientiTarget);
        
g_stolen[iClient]++;
        if(
g_stolen[iClient] >= 3) {
            
g_stolen[iClient] = 0;
            
ForcePlayerSuicide(iClient);
            
//PrintToChat(iClient, "You stole too many rockets and got slayed");
        
}
    }

works for me, you could also reset the counter on player spawn or something

Last edited by pear; 07-18-2017 at 08:02.
pear is offline
Error505
New Member
Join Date: Dec 2016
Old 07-18-2017 , 11:28   Re: [TF2] Yet Another Dodgeball Plugin (Reborn)
Reply With Quote #23

Hello, Pro in mod and coding! I had a problem. I installed this mod but I have it why is not working.... Maybe I can you help me?

I have installed Source Mod, SteamTools, TF2Items. And of course this mod. Cvars I wrote.
Everything is smooth, nothing works...

Test map: tfdb_groove_v2
__________________
Error505 is offline
cigzag
AlliedModders Donor
Join Date: Nov 2014
Location: NZ
Old 07-18-2017 , 15:14   Re: [TF2] Yet Another Dodgeball Plugin (Reborn)
Reply With Quote #24

Quote:
Originally Posted by Error505 View Post
Hello, Pro in mod and coding! I had a problem. I installed this mod but I have it why is not working.... Maybe I can you help me?

I have installed Source Mod, SteamTools, TF2Items. And of course this mod. Cvars I wrote.
Everything is smooth, nothing works...

Test map: tfdb_groove_v2
Hello, I'm glad you tried out this plugin!, Please make sure you have TF2Attributes installed and it is running!

Also, the convars listed in server.cfg isn't required, you can change them in tf/cfg/sourcemod/tf2_dodgeball

Last edited by cigzag; 07-18-2017 at 15:14.
cigzag is offline
cigzag
AlliedModders Donor
Join Date: Nov 2014
Location: NZ
Old 07-18-2017 , 15:17   Re: [TF2] Yet Another Dodgeball Plugin (Reborn)
Reply With Quote #25

Quote:
Originally Posted by pear View Post
Tested it again and the large mph number is fixed but it's still showing the clientindex that killed me instead of the actual name.

if(GetConVarBool(g_hCvarAnnounceKill)) CPrintToChatAll("\x05%N\01 died to \x05%i\x01", g_iLastDeadClient, killer);

Take in mind that if you change it to %N and the starting rocket kills you it will display "died to Console".
Woops, I will change it to N, and if you are really bothered about the died to Console part then I suggest you suggest something else
cigzag is offline
cigzag
AlliedModders Donor
Join Date: Nov 2014
Location: NZ
Old 07-18-2017 , 15:22   Re: [TF2] Yet Another Dodgeball Plugin (Reborn)
Reply With Quote #26

Quote:
Originally Posted by pear View Post
works for me, you could also reset the counter on player spawn or something
Your code resets it when the player gets slayed, there is no need to do this.
cigzag is offline
pear
Member
Join Date: May 2017
Location: sea
Old 07-18-2017 , 18:14   Re: [TF2] Yet Another Dodgeball Plugin (Reborn)
Reply With Quote #27

Quote:
Originally Posted by SnowTigerVidz View Post
Your code resets it when the player gets slayed, there is no need to do this.
Yeah but when the player steals 2 rockets for example and then the next round begins the counter won't reset and slay him on the first steal

Quote:
Originally Posted by SnowTigerVidz View Post
Woops, I will change it to N, and if you are really bothered about the died to Console part then I suggest you suggest something else
Well either remove the message if killer == 0 or change it to something else like "died to Starting Rocket" because console feels kinda plain in my opinion.

Last edited by pear; 07-18-2017 at 18:26.
pear is offline
cigzag
AlliedModders Donor
Join Date: Nov 2014
Location: NZ
Old 07-18-2017 , 23:41   Re: [TF2] Yet Another Dodgeball Plugin (Reborn)
Reply With Quote #28

Quote:
Originally Posted by pear View Post
Yeah but when the player steals 2 rockets for example and then the next round begins the counter won't reset and slay him on the first steal
I just realised, Will fix.

Quote:
Originally Posted by pear View Post
Well either remove the message if killer == 0 or change it to something else like "died to Starting Rocket" because console feels kinda plain in my opinion.
I will do that, thanks

EDIT : Updated!

Last edited by cigzag; 07-19-2017 at 01:30.
cigzag is offline
Riotline
AlliedModders Donor
Join Date: Oct 2015
Location: Half Life 3
Old 07-19-2017 , 06:28   Re: [TF2] Yet Another Dodgeball Plugin (Reborn)
Reply With Quote #29

Hello. I was wondering if you can add support for a leaderboard/natives for player by player scoring.

For example, Amount of Airblasts/Deflected Rockets, Amount of Kills, Highest Speed. ETC.
__________________
Riotline is offline
cigzag
AlliedModders Donor
Join Date: Nov 2014
Location: NZ
Old 07-19-2017 , 08:41   Re: [TF2] Yet Another Dodgeball Plugin (Reborn)
Reply With Quote #30

Quote:
Originally Posted by Riotline View Post
Hello. I was wondering if you can add support for a leaderboard/natives for player by player scoring.

For example, Amount of Airblasts/Deflected Rockets, Amount of Kills, Highest Speed. ETC.
plz no
cigzag is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:50.


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