Raised This Month: $51 Target: $400
 12% 

Bullet decals


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 01-25-2009 , 11:13   Bullet decals
Reply With Quote #1

I was wondering some things about bullet decals:

1. How can I write a message with bullet spark on the wall?
2. How can I write a message with bullet decal on the wall?
3. How can I hook where bullet decal was writed?
4. How can I write a message with blood decal on a player?
5. How can I hook when blood from player was sprayed out?
6. How can I write a message with a bullet part falling out of the gun?
7. How can I hook when bullet part fals out of the gun?
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.
MPNumB is offline
Send a message via Skype™ to MPNumB
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-25-2009 , 11:37   Re: Bullet decals
Reply With Quote #2

What about to start to search a bit yourself ?

1. TE_GUNSHOTDECAL
2. TE_DECAL if entity ; TE_WORLDDECAL if worldspawn.
3. TraceAttack + TR_vecEndPos ?
4. TE_BLOODSPRITE ? TE_BLOODSTREAM ?
5. TE_BLOODSPRITE ? TE_BLOODSTREAM ?
6. Don't understand.
7. Don't understand.

Hope this time you will able to say at least a "Thank you" for people who try to help you.
Arkshine is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-25-2009 , 13:46   Re: Bullet decals
Reply With Quote #3

6 & 7. He wants to know how to hook/create the shell of the bullet falling out of the weapon.
Such as when you shoot a shotgun, the shell pops out of the side and falls to the ground.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 01-25-2009 , 13:50   Re: Bullet decals
Reply With Quote #4

about 6 and 7 I believe that the shell is build in the model
__________________
All you need to change the world is one good lie and a river of blood
P34nut is offline
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 01-25-2009 , 15:03   Re: Bullet decals
Reply With Quote #5

Quote:
Originally Posted by P34nut View Post
about 6 and 7 I believe that the shell is build in the model
I think so too.
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-25-2009 , 15:34   Re: Bullet decals
Reply With Quote #6

The shell model index is handled by a weapon offset (m_iShell ?)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 01-25-2009 , 15:49   Re: Bullet decals
Reply With Quote #7

1. But how can I set in what direction sparks will go?
2. Thanks. But:
PHP Code:
write_byte(texture index of precached decal texture name
What is this?
3. Shootgun?
4. Thanks.
5. Thanks.
6. Image.
7. Image.
Attached Thumbnails
Click image for larger version

Name:	x2.jpg
Views:	425
Size:	9.6 KB
ID:	36284  
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.
MPNumB is offline
Send a message via Skype™ to MPNumB
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 01-25-2009 , 16:33   Re: Bullet decals
Reply With Quote #8

Quote:
Originally Posted by MPNumB View Post
6. Image.
7. Image.
I think that you need to hook a touch event of that entity.
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores is offline
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 01-25-2009 , 16:40   Re: Bullet decals
Reply With Quote #9

Quote:
Originally Posted by Dores View Post
I think that you need to hook a touch event of that entity.
It is not anentity - it's an message, so it's impossible to hook touch event of it.
Attached Thumbnails
Click image for larger version

Name:	x2.jpg
Views:	312
Size:	7.1 KB
ID:	36286  
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.
MPNumB is offline
Send a message via Skype™ to MPNumB
marcellus
Senior Member
Join Date: Mar 2004
Old 01-25-2009 , 17:28   Re: Bullet decals
Reply With Quote #10

Quote:
Originally Posted by MPNumB View Post
It is not anentity - it's an message, so it's impossible to hook touch event of it.
are u talking about this ?

Code:
// eject a shell from the weapon every shot 
public eject_brass(Float: vecOrigin[3],Float:   vecVelocity[3],Float: rotation, soundtype )
{
	engfunc(EngFunc_MessageBegin, MSG_BROADCAST, SVC_TEMPENTITY, vecOrigin, 0);
	write_byte( TE_MODEL);
	engfunc(EngFunc_WriteCoord, vecOrigin[0]);
	engfunc(EngFunc_WriteCoord, vecOrigin[1]);
	engfunc(EngFunc_WriteCoord, vecOrigin[2]);
	engfunc(EngFunc_WriteCoord, vecVelocity[0]);
	engfunc(EngFunc_WriteCoord, vecVelocity[1]);
	engfunc(EngFunc_WriteCoord, vecVelocity[2]);
	engfunc(EngFunc_WriteAngle, rotation);
	write_short( g_shell);
	write_byte( soundtype);
	write_byte ( 25 );
	message_end();
}
__________________
www.war-cs.com
french cz community
marcellus is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:35.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode