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.
|
Print a .iwi on the ground
|
|
07-03-2013, 15:24
I think that its not possible
07-03-2013, 16:16
What, are you doing paintball mod or something?
ONTOPIC: agree with @Yamato, I doubt you can actually do it ![]()
07-03-2013, 16:24
He could try to spawn lines or something in the area of impact, otherwise I cant think of any other way.
07-03-2013, 17:19
(07-03-2013, 16:16)Arteq Wrote: What, are you doing paintball mod or something? 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.
07-03-2013, 17:39
How was it done in CoD4 though?
Do not take life too seriously. You will never get out of it alive.
(07-03-2013, 17:39)DidUknowiPwn Wrote: How was it done in CoD4 though? With effects (efx files) afaik.
07-13-2013, 12:53
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.
07-13-2013, 14:51
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(); |
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
| Help Print kills in the console | Bandarigoda123 | 8 | 6,777 |
04-08-2013, 16:05 Last Post: archit |
|
|
|
Help Print text on screen | koro35 | 4 | 5,960 |
11-18-2012, 00:24 Last Post: koro35 |
| [Request] Print(save) on text file the server status. | Dumas | 3 | 3,816 |
02-24-2012, 20:03 Last Post: Dumas |
|
| [Release] Distance to ground surface. | Justin | 2 | 3,170 |
10-02-2011, 23:23 Last Post: Tomsen1410 |
|
| [Unapproved] Control gunship from ground | Afgfighter | 2 | 3,557 |
06-22-2011, 01:05 Last Post: Afgfighter |
|
| Drop things to the ground? | alistair3149 | 3 | 3,698 |
12-02-2010, 11:53 Last Post: alistair3149 |
|
| Users browsing this thread: |
| 1 Guest(s) |



![[Image: r212360a129ce9b84444093b6cd2699013a1fbn155.png]](http://roflsaurus.com/users/public/r212360a129ce9b84444093b6cd2699013a1fbn155.png)