Raised This Month: $ Target: $400
 0% 

Simple new Weapon


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Tonda
Senior Member
Join Date: Aug 2009
Old 11-18-2010 , 10:33   Simple new Weapon
Reply With Quote #1

Ho can i create simple weapon with new model, sound shoot ... ? Like Minigun, Bazooka ....
Tonda is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 11-18-2010 , 11:06   Re: Simple new Weapon
Reply With Quote #2

http://forums.alliedmods.net/showthr...+weapon+models

This should get you started with the model. Replacing a weapon sound other then knife sound is impossible afaik.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
ARES[ro]
Senior Member
Join Date: Apr 2010
Old 11-18-2010 , 11:36   Re: Simple new Weapon
Reply With Quote #3

Quote:
Originally Posted by drekes View Post
http://forums.alliedmods.net/showthr...+weapon+models

This should get you started with the model. Replacing a weapon sound other then knife sound is impossible afaik.
1 word: Orpheu
__________________
okay
ARES[ro] is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-18-2010 , 12:08   Re: Simple new Weapon
Reply With Quote #4

Orpheu can't do all. Weapons sounds are handled client-side. You can make your own weapon easily but you will have to use a command or an existing weapon slot to select it.
__________________
Arkshine is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 11-18-2010 , 14:28   Re: Simple new Weapon
Reply With Quote #5

Quote:
Originally Posted by Arkshine View Post
Orpheu can't do all. Weapons sounds are handled client-side. You can make your own weapon easily but you will have to use a command or an existing weapon slot to select it.
One word: fennecs.
Seta00 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-18-2010 , 14:55   Re: Simple new Weapon
Reply With Quote #6

With some good thoughts you can create interesting ways to select something, like the plugin Joaquim has done.
__________________
Arkshine is offline
ARES[ro]
Senior Member
Join Date: Apr 2010
Old 11-18-2010 , 16:10   Re: Simple new Weapon
Reply With Quote #7

Even if they are handled client-side... with the right function in orpheu (or even ham)and the right predictions when the sound would be played, you can block that by changing the required conditions to be played...
we know the server sends whenever data to clients like player is shooting a weapon and how many bullets the weapon has... you can modify that sent data in the right functions maybe addtofullpack either way u can block the sound if the conditions for it to be shot are right by making them wrong and playing your own sound... no?
__________________
okay
ARES[ro] is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-18-2010 , 16:39   Re: Simple new Weapon
Reply With Quote #8

I would say no, but make the code and prove it. ;)

Like you say addtofullpack is server -> client and the client-side part of a weapon is triggered because of an "event" sent ( PLAYBACK_[FULL]_EVENT ). Event which will call at the end a client-side function like EV_Fire*(), and inside some code including the fire sound. Tell me how you can block this sound ? You can't.

But that's not a problem. The goal here is to make a new weapon, not to do something based on existing weapon. It's very easy to block completely a weapon, using custom models, sounds, etc, and handling all ( fire, reload, etc.. ).
__________________

Last edited by Arkshine; 11-18-2010 at 17:32.
Arkshine is offline
ARES[ro]
Senior Member
Join Date: Apr 2010
Old 11-18-2010 , 18:34   Re: Simple new Weapon
Reply With Quote #9

Quote:
Originally Posted by Arkshine View Post
I would say no, but make the code and prove it. ;)

Like you say addtofullpack is server -> client and the client-side part of a weapon is triggered because of an "event" sent ( PLAYBACK_[FULL]_EVENT ). Event which will call at the end a client-side function like EV_Fire*(), and inside some code including the fire sound. Tell me how you can block this sound ? You can't.

But that's not a problem. The goal here is to make a new weapon, not to do something based on existing weapon. It's very easy to block completely a weapon, using custom models, sounds, etc, and handling all ( fire, reload, etc.. ).
True we dont need to get there since we will be blocking the entire fire event...
__________________
okay
ARES[ro] is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-18-2010 , 18:50   Re: Simple new Weapon
Reply With Quote #10

It's more easy to block all, then making the whole weapon, so you can control all aspect of your weapon easily. There is no point to search to block the existing weapon sounds, at least if the purpose is to make new weapons.
__________________
Arkshine 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 11:18.


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