Editing weapon help please
I am trying to edit an existing weapon to create a 'new' weapon. Such as removing the existing weapons properties, then assigning new ones to it.
I thought to start I should remove the existing weapons fire and sound. I read the tutorial here on how to do that... http://forums.alliedmods.net/showthread.php?t=41265 Now I have a problem because I can't capture when the player is holding attack. Is there a way to remove all the existing weapons properties while still being able to detect when attack is being used? |
Re: Editing weapon help please
Is anyone able to help me with this?
I would appreciate it very much, thanks. |
Re: Editing weapon help please
Hi,
i have the same problem ... current i use a very bad workaround for the problem ... but i need a better solution http://forums.alliedmods.net/showthread.php?p=424755 i think with this plugin is it posible to block the shoot, following by a fakedamage for the player ... please let me know if the idea work, thanks hand, mogel |
Re: Editing weapon help please
Post the code you're using to block the animation and sound.
I think if you use: Code:
set_cd(cd_handle, CD_ID, 0) |
Re: Editing weapon help please
Yeah that's what I'm using and I couldn't seem to figure it out. Here is the code...
PHP Code:
|
Re: Editing weapon help please
What if you remove the line with entity_set_int? I don't think you need to remove the button AND change CD_ID with set_cd().
|
Re: Editing weapon help please
Once again you fixed my problem stupok69 :D
Thanks :) |
Re: Editing weapon help please
Quote:
Well sort of. I just noticed the gun will fire, but doesn't play the sound or animations (that's why I didn't catch it at first). Is there a way to block the damage and ammo drain somehow? EDIT: GAH!!! I clicked quote instead of edit, my bad. |
Re: Editing weapon help please
I took a look at GabenMod, here's something useful:
from gm_soldier.sma by Basic-Master Code:
|
Re: Editing weapon help please
Code:
or the same concept with pev and set_pev with prethink |
| All times are GMT -4. The time now is 21:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.