Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Print a .iwi on the ground
#1
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.
Reply

#2
I think that its not possible Undecided
Reply

#3
What, are you doing paintball mod or something?
ONTOPIC: agree with @Yamato, I doubt you can actually do it
[Image: r212360a129ce9b84444093b6cd2699013a1fbn155.png]
Reply

#4
He could try to spawn lines or something in the area of impact, otherwise I cant think of any other way.
Reply

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

#6
How was it done in CoD4 though?
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply

#7
(07-03-2013, 17:39)DidUknowiPwn Wrote: How was it done in CoD4 though?

With effects (efx files) afaik.
[Image: MaEIQ.png]
Reply

#8
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)
Reply

#9
Use 'angle' property?
And it is hardcoded i think.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#10
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();
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Print kills in the console Bandarigoda123 8 4,805 04-08-2013, 16:05
Last Post: archit
Question Help Print text on screen koro35 4 4,345 11-18-2012, 00:24
Last Post: koro35
  [Request] Print(save) on text file the server status. Dumas 3 2,634 02-24-2012, 20:03
Last Post: Dumas
  [Release] Distance to ground surface. Justin 2 2,175 10-02-2011, 23:23
Last Post: Tomsen1410
  [Unapproved] Control gunship from ground Afgfighter 2 2,252 06-22-2011, 01:05
Last Post: Afgfighter
  Drop things to the ground? alistair3149 3 2,371 12-02-2010, 11:53
Last Post: alistair3149

Forum Jump:


Users browsing this thread:
1 Guest(s)

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