How to make bullet-shooting swep that have disintegrating bullets? Any idea?
You can use the [url=http://wiki.garrysmod.com/page/Structures/Bullet]bullet.Callback[/url] hook [IMG]http://wiki.garrysmod.com/favicon.ico[/IMG] [URL="http://wiki.garrysmod.com/page/WEAPON/ShootBullet"]WEAPON/ShootBullet[/URL]
with [IMG]http://wiki.garrysmod.com/favicon.ico[/IMG] [URL="http://wiki.garrysmod.com/page/Entity/TakeDamageInfo"]Entity:TakeDamageInfo[/URL]
and use the DMG_DISSOLVE damage type to get the dissolving effect.
I will try.
[url]http://wiki.garrysmod.com/page/Structures/Bullet[/url]
In the callback function call [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/CTakeDamageInfo/SetDamageType]CTakeDamageInfo:SetDamageType[/url]
[editline]25th April 2015[/editline]
Ninja'd
Thank you everyone :)
Sorry, you need to Log In to post a reply to this thread.