Raised This Month: $51 Target: $400
 12% 

[TF2] Freak Fortress 2


Post New Thread Closed Thread   
 
Thread Tools Display Modes
PMAvers
Member
Join Date: Sep 2009
Old 04-12-2012 , 23:08   Re: [TF2] Freak Fortress 2
#201

Quote:
Originally Posted by Powerlord View Post
It's enabled for arena, vsh, and koth in the config, but not cp.

I just assumed that it had logic to detect the koth point entity in addition to the arena point entity, but I didn't actually check the code for it.
The version I downloaded last night has this in the maps.cfg:

Quote:
arena_
koth_
vsh_
cp_
glass_
zf_
deathrun_
Dunno if it would even work, though. Didn't test it before disabling it, although I think a A/D CP version could be interesting. Rounds would be vastly longer, but put the boss on O and give it vastly less life. If it "dies", it gets sent back to spawn. Idea would be to try to hold out against the boss as long as possible while trying to keep him from capturing the points.
PMAvers is offline
zyrphon
Member
Join Date: Jan 2010
Location: Chicago, IL, USA
Old 04-13-2012 , 02:39   Re: [TF2] Freak Fortress 2
#202

Quote:
Originally Posted by PMAvers View Post
The version I downloaded last night has this in the maps.cfg:



Dunno if it would even work, though. Didn't test it before disabling it, although I think a A/D CP version could be interesting. Rounds would be vastly longer, but put the boss on O and give it vastly less life. If it "dies", it gets sent back to spawn. Idea would be to try to hold out against the boss as long as possible while trying to keep him from capturing the points.
I second this motion! I'll forward that to my mapper lol, even though we have like 6-8 maps in the works ROFL. He's made my clan 4 maps for VSH so far so why not make a cp map for FF2 specifically? It's worth a shot. If we do a map like this I'll post it here after we tested it for a while, other mappers should do the same!
__________________
Hungry Hoovy Hotel - 74.91.119.21:27015
What The Hale?! - 74.91.119.21:27016
zyrphon is offline
Eggman
Senior Member
Join Date: Jan 2010
Old 04-13-2012 , 07:55   Re: [TF2] Freak Fortress 2
#203

Quote:
Originally Posted by hkkelvin1995 View Post
OK My friend and I created a new character, Creeper from Minecraft.
It's number 15 in characters.cfg.
*facehoof*
Boss [index] = 15

Boss [index] is a client. This is comparing Boss' entity index (not client's userid) with 15.
Quote:
Originally Posted by 1st post!!!
Do NOT check Boss' name. Make new ability and check it! Your ability may be needed to other Bosses.
And do not check Boss' number too.

Quote:
arena_
koth_
vsh_
cp_
glass_
zf_
deathrun_
Oops, my baaad...



Also fixed bug about install kill for Seeldier's minions.
Attached Files
File Type: sp Get Plugin or Get Source (ff2_1st_set_abilities.sp - 173 views - 22.9 KB)
File Type: zip ff2_1st_set_abilities.zip (18.5 KB, 193 views)

Last edited by Eggman; 04-13-2012 at 10:11.
Eggman is offline
zyrphon
Member
Join Date: Jan 2010
Location: Chicago, IL, USA
Old 04-13-2012 , 10:49   Re: [TF2] Freak Fortress 2
#204

Quote:
Originally Posted by Eggman View Post
Also fixed bug about install kill for Seeldier's minions.
Thank you!
__________________
Hungry Hoovy Hotel - 74.91.119.21:27015
What The Hale?! - 74.91.119.21:27016
zyrphon is offline
jery0987
Junior Member
Join Date: Dec 2010
Old 04-13-2012 , 11:15   Re: [TF2] Freak Fortress 2
#205

I made a new boss ability to freeze all player except boss.

But line 54 have a trouble.


Code:
// rage_freeze:  arg0 - slot (def.0)
//      arg1 - freeze duration
#pragma semicolon 1
#include <sourcemod>
#include <tf2items>
#include <tf2_stocks>
#include <freak_fortress_2>
#include <freak_fortress_2_subplugin>
#define SOUND_FREEZE "physics/glass/glass_impact_bullet4.wav"
new BossTeam=_:TFTeam_Blue;
new Handle:g_FreezeTimers[MAXPLAYERS+1];
new g_FreezeTracker[MAXPLAYERS+1];
new g_GlowSprite;
public Plugin:myinfo = {
 name = "Freak Fortress 2: rage_freeze",
 author = "Jery0987",
};
public OnPluginStart2()
{
 HookEvent("teamplay_round_start", event_round_start);
}
public Action:event_round_start(Handle:event, const String:name[], bool:dontBroadcast)
{
 CreateTimer(0.3,Timer_GetBossTeam);
 return Plugin_Continue;
}
public Action:Timer_GetBossTeam(Handle:hTimer)
{
 BossTeam=FF2_GetBossTeam();
 return Plugin_Continue;
}
public Action:FF2_OnAbility2(index,const String:plugin_name[],const String:ability_name[],action)
{
 if (!strcmp(ability_name,"rage_freeze"))
  Rage_Freeze(index,ability_name);
 return Plugin_Continue;
}
Rage_Freeze(index,const String:ability_name[])
{
 decl i;
 for(i=1;i<=MaxClients;i++)
  if(IsClientInGame(i) && IsPlayerAlive(i) && GetClientTeam(i)!=BossTeam)
  {
   FreezeClient(i,FF2_GetAbilityArgumentFloat(index,this_plugin_name,ability_name,1,5.0));
  }
}
FreezeClient(client, time)
{
 if (g_FreezeTimers[client] != INVALID_HANDLE)
 {
  UnfreezeClient(client);
 }
 
 SetEntityMoveType(client, MOVETYPE_NONE);
 SetEntityRenderColor(client, 0, 128, 255, 192);
 
 new Float:vec[3];
 GetClientEyePosition(client, vec);
 EmitAmbientSound(SOUND_FREEZE, vec, client, SNDLEVEL_RAIDSIREN);
 g_FreezeTimers[client] = CreateTimer(1.0, Timer_Freeze, client, TIMER_REPEAT);
 g_FreezeTracker[client] = time;
}
UnfreezeClient(client)
{
 KillFreezeTimer(client);
 new Float:vec[3];
 GetClientAbsOrigin(client, vec);
 vec[2] += 10; 
 
 GetClientEyePosition(client, vec);
 EmitAmbientSound(SOUND_FREEZE, vec, client, SNDLEVEL_RAIDSIREN);
 SetEntityMoveType(client, MOVETYPE_WALK);
 SetEntityRenderColor(client, 255, 255, 255, 255); 
}
KillFreezeTimer(client)
{
 KillTimer(g_FreezeTimers[client]);
 g_FreezeTimers[client] = INVALID_HANDLE;
}
public Action:Timer_Freeze(Handle:timer, any:client)
{
 if (!IsClientInGame(client))
 {
  KillFreezeTimer(client);
  return Plugin_Continue;
 }
 
 if (!IsPlayerAlive(client))
 {
  UnfreezeClient(client);
  
  return Plugin_Continue;
 }  
 
 g_FreezeTracker[client]--;
 
 SetEntityMoveType(client, MOVETYPE_NONE);
 SetEntityRenderColor(client, 0, 128, 255, 135);
 
 new Float:vec[3];
 GetClientAbsOrigin(client, vec);
 vec[2] += 10;
 
 TE_SetupGlowSprite(vec, g_GlowSprite, 0.95, 1.5, 50);
 TE_SendToAll(); 
 if (g_FreezeTracker[client] == 0)
 {
  UnfreezeClient(client);
 }
 return Plugin_Continue;
}
Attached Files
File Type: sp Get Plugin or Get Source (rage_freeze.sp - 152 views - 2.8 KB)
File Type: zip rage_freeze.zip (6.4 KB, 182 views)

Last edited by jery0987; 04-13-2012 at 11:28.
jery0987 is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 04-13-2012 , 11:39   Re: [TF2] Freak Fortress 2
#206

Quote:
Originally Posted by jery0987 View Post
I made a new boss ability to freeze all player except boss.

But line 54 have a trouble.


Code:
// rage_freeze:  arg0 - slot (def.0)
//      arg1 - freeze duration
#pragma semicolon 1
#include <sourcemod>
#include <tf2items>
#include <tf2_stocks>
#include <freak_fortress_2>
#include <freak_fortress_2_subplugin>
#define SOUND_FREEZE "physics/glass/glass_impact_bullet4.wav"
new BossTeam=_:TFTeam_Blue;
new Handle:g_FreezeTimers[MAXPLAYERS+1];
new g_FreezeTracker[MAXPLAYERS+1];
new g_GlowSprite;
public Plugin:myinfo = {
 name = "Freak Fortress 2: rage_freeze",
 author = "Jery0987",
};
public OnPluginStart2()
{
 HookEvent("teamplay_round_start", event_round_start);
}
public Action:event_round_start(Handle:event, const String:name[], bool:dontBroadcast)
{
 CreateTimer(0.3,Timer_GetBossTeam);
 return Plugin_Continue;
}
public Action:Timer_GetBossTeam(Handle:hTimer)
{
 BossTeam=FF2_GetBossTeam();
 return Plugin_Continue;
}
public Action:FF2_OnAbility2(index,const String:plugin_name[],const String:ability_name[],action)
{
 if (!strcmp(ability_name,"rage_freeze"))
  Rage_Freeze(index,ability_name);
 return Plugin_Continue;
}
Rage_Freeze(index,const String:ability_name[])
{
 decl i;
 for(i=1;i<=MaxClients;i++)
  if(IsClientInGame(i) && IsPlayerAlive(i) && GetClientTeam(i)!=BossTeam)
  {
   FreezeClient(i,FF2_GetAbilityArgumentFloat(index,this_plugin_name,ability_name,1,5.0));
  }
}
FreezeClient(client, time)
{
 if (g_FreezeTimers[client] != INVALID_HANDLE)
 {
  UnfreezeClient(client);
 }
 
 SetEntityMoveType(client, MOVETYPE_NONE);
 SetEntityRenderColor(client, 0, 128, 255, 192);
 
 new Float:vec[3];
 GetClientEyePosition(client, vec);
 EmitAmbientSound(SOUND_FREEZE, vec, client, SNDLEVEL_RAIDSIREN);
 g_FreezeTimers[client] = CreateTimer(1.0, Timer_Freeze, client, TIMER_REPEAT);
 g_FreezeTracker[client] = time;
}
UnfreezeClient(client)
{
 KillFreezeTimer(client);
 new Float:vec[3];
 GetClientAbsOrigin(client, vec);
 vec[2] += 10; 
 
 GetClientEyePosition(client, vec);
 EmitAmbientSound(SOUND_FREEZE, vec, client, SNDLEVEL_RAIDSIREN);
 SetEntityMoveType(client, MOVETYPE_WALK);
 SetEntityRenderColor(client, 255, 255, 255, 255); 
}
KillFreezeTimer(client)
{
 KillTimer(g_FreezeTimers[client]);
 g_FreezeTimers[client] = INVALID_HANDLE;
}
public Action:Timer_Freeze(Handle:timer, any:client)
{
 if (!IsClientInGame(client))
 {
  KillFreezeTimer(client);
  return Plugin_Continue;
 }
 
 if (!IsPlayerAlive(client))
 {
  UnfreezeClient(client);
  
  return Plugin_Continue;
 }  
 
 g_FreezeTracker[client]--;
 
 SetEntityMoveType(client, MOVETYPE_NONE);
 SetEntityRenderColor(client, 0, 128, 255, 135);
 
 new Float:vec[3];
 GetClientAbsOrigin(client, vec);
 vec[2] += 10;
 
 TE_SetupGlowSprite(vec, g_GlowSprite, 0.95, 1.5, 50);
 TE_SendToAll(); 
 if (g_FreezeTracker[client] == 0)
 {
  UnfreezeClient(client);
 }
 return Plugin_Continue;
}
The problem is actually in line 53 or 58. One of them needs to be:
PHP Code:
FreezeClient(i,FF2_GetAbilityArgument(index,this_plugin_name,ability_name,1,5.0)); 
or
PHP Code:
FreezeClient(clientFloat:time
Changing 58 also means that any other line of code dealing with g_FreezeTracker needs to be updated to deal with floats.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 04-13-2012 at 11:42.
Powerlord is offline
MaloModo
Veteran Member
Join Date: Aug 2008
Old 04-13-2012 , 11:42   Re: [TF2] Freak Fortress 2
#207

Quote:
Originally Posted by S_W_A_T View Post
Models, Materials, Sounds, and cfg file please...
http://forums.alliedmods.net/showpos...&postcount=157

Trust me I have tried every combination of paths etc in config. The sounds aren't there. If this can be solved I will be more than happy to release my version of "freddy" with all files.

Last edited by MaloModo; 04-13-2012 at 11:44.
MaloModo is offline
Eggman
Senior Member
Join Date: Jan 2010
Old 04-13-2012 , 13:18   Re: [TF2] Freak Fortress 2
#208

jery0987, I recommend you add check for rage distance (don't forget about FF2_GetRageDist(index,this_plugin_name,abilit y_name)) to your ability.
Eggman is offline
P4CM4N
Junior Member
Join Date: Feb 2012
Old 04-13-2012 , 14:47   Re: [TF2] Freak Fortress 2
#209

I guess that nobody knows how to put a hat on a model, too bad

Anyway, I found a model, it's the Stylish Spy skin from AyesDyef
So, I decided to upload it even if he hasn't got a Fancy Fedora

Here is his abilities :
-No super jump (to equilibrate a little the boss)
-Rage : Teleports to a random player and stuns everyone around for 3 seconds, he also gets an Ambassador with 10 bullets.
-Special ability : Spawns with a "mini" cbs (CBS but with less health).
-His ambassador does gib kills on crits and also reduces mystery solving time by up to 99% !!!

Also, like CBS, his theme music plays in the background.
Hope you will like him

Download here

Last edited by P4CM4N; 04-13-2012 at 14:49.
P4CM4N is offline
Send a message via ICQ to P4CM4N
Spectre143
Junior Member
Join Date: Jul 2011
Location: Valhalla
Old 04-13-2012 , 16:26   Re: [TF2] Freak Fortress 2
#210

Quote:
Originally Posted by P4CM4N View Post
I guess that nobody knows how to put a hat on a model, too bad

Anyway, I found a model, it's the Stylish Spy skin from AyesDyef
So, I decided to upload it even if he hasn't got a Fancy Fedora

Here is his abilities :
-No super jump (to equilibrate a little the boss)
-Rage : Teleports to a random player and stuns everyone around for 3 seconds, he also gets an Ambassador with 10 bullets.
-Special ability : Spawns with a "mini" cbs (CBS but with less health).
-His ambassador does gib kills on crits and also reduces mystery solving time by up to 99% !!!

Also, like CBS, his theme music plays in the background.
Hope you will like him

Download here
Awesome

By the way I'm also working on SoupCock Porkpie (sounds replacement only )
After he is done, I'll start learning to compile models for Source Engine, so I can tweak my previous bosses and also create Doc Jarate from The Snyphurr Saga.

Last edited by Spectre143; 04-13-2012 at 16:27.
Spectre143 is offline
Closed Thread



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 14:45.


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