Archived copy of war3source.com, the War3Source forum (2009–2020), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2012-10-24 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog
Chat

War3:Source
October 24, 2012, 03:15:28 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Download: http://war3source.com/index.php?board=9.0
What is War3Source?: http://war3source.com/index.php?topic=200.0
Sample Stats: http://war3source.com/war3stats
Steam Community Group: http://steamcommunity.com/groups/war3source
War3Source SVN Checkout: http://ownageclan.com/svn/war3source/
War3Source servers: http://www.game-monitor.com/search.php?vars=war3_version=
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Unstuck Plugin  (Read 483 times)
[Oddity]TeacherCreature
Sr. Member
****
Posts: 463


View Profile
« on: August 03, 2010, 08:52:48 AM »

The idea is u bind a key to +stuck

and u get 2 seconds of no colliions with other players


I used same command as NOBLOCK which WORKS,
but mine wont work


can any pro help me out

Code:
/**
* File: War3Source_Unstuck.sp
* Description: Unstuck command for servers.
* Author(s): [Oddity]TeacherCreature
*/

#pragma semicolon 1

#include <sourcemod>
#include "W3SIncs/War3Source_Interface"
#include <sdkhooks>
#include <sdktools>

new g_offsCollisionGroup;
new bool:bStucked[66];
public Plugin:myinfo =
{
name = "War3Source Unstuck Addon",
author = "[Oddity]TeacherCreature",
description = "Unstuck Addon.",
version = "1.0.0.0",
url = "warcraft-source.net"
}

public OnPluginStart()
{
g_offsCollisionGroup = FindSendPropOffs("CBaseEntity", "m_CollisionGroup");
RegConsoleCmd("+stuck", SayStuck);
}

public Action:SayStuck(client, args)
{
if(!bStucked[client])
{
SetEntData(client, g_offsCollisionGroup, 2, 4, true);
CreateTimer(2.0,normal,client);
PrintHintText(client,"2 seconds to unstick yourself");
}
}

public Action:normal(Handle:timer,any:client)
{
SetEntData(client, g_offsCollisionGroup, 5, 4, true);
}
Logged

Ownz
Developer
Administrator
Hero Member
*****
Posts: 2045



View Profile WWW Email
« Reply #1 on: August 03, 2010, 09:02:41 AM »

this only helps if ur stuck on players, not on structures. u need to use noclip for that
Logged

DarkEnergy
[Oddity]TeacherCreature
Sr. Member
****
Posts: 463


View Profile
« Reply #2 on: August 03, 2010, 09:11:08 AM »

MOst of our problems are being stuck in players much more so than stuck in buildings

and ok maybe Iwill use no clip but in the mean time  I would like to get this working!
Logged

[Oddity]TeacherCreature
Sr. Member
****
Posts: 463


View Profile
« Reply #3 on: August 04, 2010, 01:47:39 PM »

bump  help
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!