ItsMods

Full Version: Print a .iwi on the ground
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi there I got a problem I want to make custom impact. But I don't only want to change the texture. That's why I'm trying to "print" a .iwi on the ground like the bullet impact as I need two colors, depending the team, with some GSC code.
I think that its not possible Undecided
What, are you doing paintball mod or something?
ONTOPIC: agree with @Yamato, I doubt you can actually do it
He could try to spawn lines or something in the area of impact, otherwise I cant think of any other way.
(07-03-2013, 16:16)Arteq Wrote: [ -> ]What, are you doing paintball mod or something?
ONTOPIC: agree with @Yamato, I doubt you can actually do it

This http://fourdeltaone.net/forum/viewtopic....17&t=40096
Anyway thanks for your help. I will keep the same Impact for both team for the moment. Rolleyes
How was it done in CoD4 though?
(07-03-2013, 17:39)DidUknowiPwn Wrote: [ -> ]How was it done in CoD4 though?

With effects (efx files) afaik.
Hi, little bump because I found a way to do it !

And here is the code I used :
Code:
init()
{
    buildfxInfo();
}

onPlayerSpawned()
{
    self endon("disconnect");
    for(;;)
    {
        self waittill("spawned_player");
        self thread createImpact();
        wait 0.1;
    }
}

createImpact()
{
    self endon( "disconnect");
    
    for(;;){
    self waittill("projectile_impact", weapon, position, radius);
    if(IsSubStr( weapon, "_fmj_"))
        playFX( level.impactred.fx, position);
    else
        playFX( level.impactblue.fx, position);
    }
}

buildfxInfo()
{
        level.impactblue = spawnStruct();
        level.impactblue.fx = loadFX( "impacts/small_metalhit" );
        level.impactred = spawnStruct();
        level.impactred.fx = loadFX( "impacts/small_snowhit" );
}

And here is a video to show you the result.


But as you can see there is an issue with vertical wall. Anyone know how can I fix this ? Also nobody know where I can found fx list ? (impacts/xxxx)
Use 'angle' property?
And it is hardcoded i think.
http://www.itsmods.com/forum/Thread-Rele...pacts.html

The list I cant remember if its complete or not

I looked in the gsc fx files and I found this, I guess it is what you need to solve the angle problem.

Code:
//Init()
level._effect["dust_wind_fast"] = loadfx ("dust/dust_wind_fast_paper");

//Your code
ent = createOneshotEffect( "dust_wind_fast" );
ent.v[ "origin" ] = ( 2653.84, 2446.12, 20.051 );
ent.v[ "angles" ] = ( 270, 0, 0 ); //VectorToAngles( ( POSITION YOU ARE LOOKING AT ) - self.origin )
ent.v[ "fxid" ] = "dust_wind_fast";
ent.v[ "delay" ] = -15;

//To delete it I guess you need to do it like this
TriggerFX( ent );
wait ( 0.05 );
ent delete();
Pages: 1 2