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

[REQ] Gun Mod (based on golden ak mod)


Post New Thread Reply   
 
Thread Tools Display Modes
laziboi72
Senior Member
Join Date: Aug 2009
Location: deathrun_temple
Old 12-23-2009 , 15:45   Re: [REQ] Gun Mod (based on golden ak mod)
Reply With Quote #41

OK! I got 1/3 of the project done
as of right now you are able to buy weapons and they show up on your back permanently no bugs now for buying or droping...
players keep the weapon until they die or drop the weapon.

Things to work on
-shooting sprites ie. fire/lightning
-increase damage of the weapons
-increase max player backpack ammo (include cvar to limit)

==Cyber== please don't ask for sprites again... my reply will be "working on it"
Attached Files
File Type: sma Get Plugin or Get Source (LZB_gunmod.sma - 398 views - 12.1 KB)
__________________
Taking a break from modding dunno when i will be back

FAIL, RIGHT HERE

Last edited by laziboi72; 12-23-2009 at 15:49.
laziboi72 is offline
Zombiezzz
Veteran Member
Join Date: Nov 2009
Location: Nov 2009
Old 12-23-2009 , 16:20   Re: [REQ] Gun Mod (based on golden ak mod)
Reply With Quote #42

ncie job man! ill help wit hthe incress damage for weapons right meow
__________________
Zombiezzz is offline
Zombiezzz
Veteran Member
Join Date: Nov 2009
Location: Nov 2009
Old 12-23-2009 , 16:31   Re: [REQ] Gun Mod (based on golden ak mod)
Reply With Quote #43

you can make a cvar and sue soemthing like this.
PHP Code:
public fw_TakeDamage(victiminflictorattackerFloat:damage)
{
 if ( 
is_valid_playerattacker ) && get_user_weapon(attacker) == CSW_AK47 && g_HasAk[attacker] )
 {
  
SetHamParamFloat(4damage get_pcvar_floatcvar_dmgmultiplier ) )
 }

PHP Code:
 cvar_dmgmultiplier register_cvar("Damage""5"
__________________
Zombiezzz is offline
laziboi72
Senior Member
Join Date: Aug 2009
Location: deathrun_temple
Old 12-23-2009 , 16:34   Re: [REQ] Gun Mod (based on golden ak mod)
Reply With Quote #44

thanks abunch!!
do i need to register an event for this?

Quote:
Originally Posted by Zombiezzz View Post
you can make a cvar and sue soemthing like this.
PHP Code:
public fw_TakeDamage(victiminflictorattackerFloat:damage)
{
 if ( 
is_valid_playerattacker ) && get_user_weapon(attacker) == CSW_AK47 && g_HasAk[attacker] )
 {
  
SetHamParamFloat(4damage get_pcvar_floatcvar_dmgmultiplier ) )
 }

PHP Code:
 cvar_dmgmultiplier register_cvar("Damage""5"
__________________
Taking a break from modding dunno when i will be back

FAIL, RIGHT HERE
laziboi72 is offline
Zombiezzz
Veteran Member
Join Date: Nov 2009
Location: Nov 2009
Old 12-23-2009 , 16:34   Re: [REQ] Gun Mod (based on golden ak mod)
Reply With Quote #45

any thing else you need help wtih :S
__________________
Zombiezzz is offline
laziboi72
Senior Member
Join Date: Aug 2009
Location: deathrun_temple
Old 12-23-2009 , 16:35   Re: [REQ] Gun Mod (based on golden ak mod)
Reply With Quote #46

do i need to register an event for this?
__________________
Taking a break from modding dunno when i will be back

FAIL, RIGHT HERE
laziboi72 is offline
Zombiezzz
Veteran Member
Join Date: Nov 2009
Location: Nov 2009
Old 12-23-2009 , 16:36   Re: [REQ] Gun Mod (based on golden ak mod)
Reply With Quote #47

PHP Code:
 RegisterHam(Ham_TakeDamage"player""fw_TakeDamage"
O_O
__________________
Zombiezzz is offline
laziboi72
Senior Member
Join Date: Aug 2009
Location: deathrun_temple
Old 12-23-2009 , 16:37   Re: [REQ] Gun Mod (based on golden ak mod)
Reply With Quote #48

oh ic thanks !!
__________________
Taking a break from modding dunno when i will be back

FAIL, RIGHT HERE
laziboi72 is offline
Zombiezzz
Veteran Member
Join Date: Nov 2009
Location: Nov 2009
Old 12-23-2009 , 16:39   Re: [REQ] Gun Mod (based on golden ak mod)
Reply With Quote #49

any thing else?
__________________
Zombiezzz is offline
laziboi72
Senior Member
Join Date: Aug 2009
Location: deathrun_temple
Old 12-23-2009 , 16:45   Re: [REQ] Gun Mod (based on golden ak mod)
Reply With Quote #50

Quote:
Originally Posted by Zombiezzz View Post
PHP Code:
 RegisterHam(Ham_TakeDamage"player""fw_TakeDamage"
O_O
do you kno how to register when a player is shooting specifically with their primary weapon?

quick update: 2/3 done!!
added damage multiplier tahnks zombiezzz
Things to do
-Shoot Sprites
-increase max backpack ammo (maybe)
Future Goals
-make plugin compatible with [ZP]
Attached Files
File Type: sma Get Plugin or Get Source (LZB_gunmod.sma - 306 views - 13.4 KB)
__________________
Taking a break from modding dunno when i will be back

FAIL, RIGHT HERE

Last edited by laziboi72; 12-23-2009 at 17:04.
laziboi72 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 20:20.


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