Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Is This Possible?
#1
Question 
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?
Reply

#2
There's no function like 'linkTo' ;(

You can try to create specific FX and set position to player. ( looped )
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#3
(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?
Reply

#4
(05-25-2013, 10:55)DJSKilly Wrote:
(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?

Put in 'OnAddonFrame'
Code:
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)
                                   playfxthere
... etc
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#5
PHP Code:
using System;
using System.Collections.Generic;
using System.Text;
using Addon;

namespace 
FX
{
    class 
Class1 CPlugin
    
{
        public 
override void OnAddonFrame()
        {
            List<
ServerClientclients;
            
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.OriginXclient.OriginYclient.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?
Reply

#6
(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
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.