i have a question if is possible it to make the infected people with a fx that follow them?
like that u have map dome and FX "fire/firelp_med_pm_nodistort"
that the FX is on the infected so that it looks that the infected people are on fire?
There's no function like 'linkTo' ;(
You can try to create specific FX and set position to player. ( looped )
(05-25-2013, 10:41)SailorMoon Wrote: [ -> ]There's no function like 'linkTo' ;(
You can try to create specific FX and set position to player. ( looped )
ooh OK thank for replay fast i had first this
if (Client.Team == Teams.Axis)
Extensions.PlayFX(Extensions.LoadFX("fire/firelp_med_pm_nodistort"), new Vector(Client.OriginX, Client.OriginY, Client.OriginZ));
but that it stay where the infected spauwn
but i don't actually know how to ( looped ) sorry i am not good in that coding
maybe if u want can u make a example?
PHP Code:
using System;
using System.Collections.Generic;
using System.Text;
using Addon;
namespace FX
{
class Class1 : CPlugin
{
public override void OnAddonFrame()
{
List<ServerClient> clients;
clients = GetClients();
if (clients != null)
{
if (clients.Count > 0)
{
foreach (ServerClient client in GetClients())
{
if (client.Ping == 999)
continue;
if (client.Other.isAlive == true)
{
if (client.ConnectionState != ConnectionStates.MapLoading)
{
if (client.ConnectionState != ConnectionStates.Connecting)
{
if (client.ConnectionState != ConnectionStates.Zombie)
{
if (client.Team = Teams.Axis)
{
Extensions.PlayFX(Extensions.LoadFX("fire/firelp_med_pm_nodistort"), new Vector(client.OriginX, client.OriginY, client.OriginZ));
}
}
}
}
}
}
}
}
}
}
}
i get a error by if (client.Team = Teams.Axis)
Error 5 Cannot implicitly convert type 'Addon.Teams' to 'bool'
can u ex plane how to fix this?
(05-25-2013, 11:49)DJSKilly Wrote: [ -> ]i get a error by if (client.Team = Teams.Axis)
Error 5 Cannot implicitly convert type 'Addon.Teams' to 'bool'
can u ex plane how to fix this?
if(client.Team == Teams.Axis)
you should load the FX in OnPrecache() or it won't work probably