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

Random Weapons, UPDATE 31-07-2006


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   GHW_Chronic (70)
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 07-28-2006 , 21:51   Random Weapons, UPDATE 31-07-2006
Reply With Quote #1

Random Weapons

About
This plugin give's a random Prim(Primary) and a Secondary weapon to player's when the round start, if the player already got a Prim/Sec, no weapon is given. I made this so server's whit like Surf_ or other maps would get some funnier.

Cvars
RW_Enabled(Def: 1) - 0: Disabled, 1: Enabled
RW_Mode(Def: 2) - 0: Only gives secondary, 1: Only gives Prim, 2: give's both prim and secondary

if you got an request/suggestion/critism, please post it, i love to get it(when i'm in mood )

(And yes, i have tested it ;))

Update 31-07-2006, Added pause if the map is a ka_
Attached Files
File Type: sma Get Plugin or Get Source (random_weapons.sma - 4874 views - 5.1 KB)

Last edited by Deviance; 04-14-2007 at 11:24.
Deviance is offline
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 07-28-2006 , 22:01   Re: Random Weapons At Round Start
Reply With Quote #2

gj, seem like a good plugin
k007 is offline
Send a message via MSN to k007
VEN
Veteran Member
Join Date: Jan 2005
Old 07-29-2006 , 02:56   Re: Random Weapons At Round Start
Reply With Quote #3

Optimized:
Code:
stock cs_get_user_hassecond(id) {     new weapons[32], num = 0, weapon     return get_user_weapons(id, weapons, num) & (1<<CSW_GLOCK18 | 1<<CSW_USP | 1<<CSW_P228 | 1<<CSW_DEAGLE | 1<<CSW_FIVESEVEN | 1<<CSW_ELITE) }

For get_ammotype you don't really need to perform a copy every time, it's inefficient.
VEN is offline
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 07-29-2006 , 07:21   Re: Random Weapons At Round Start
Reply With Quote #4

Quote:
Originally Posted by VEN
Optimized:
Code:
stock cs_get_user_hassecond(id) {     new weapons[32], num = 0, weapon     return get_user_weapons(id, weapons, num) & (1<<CSW_GLOCK18 | 1<<CSW_USP | 1<<CSW_P228 | 1<<CSW_DEAGLE | 1<<CSW_FIVESEVEN | 1<<CSW_ELITE) }

For get_ammotype you don't really need to perform a copy every time, it's inefficient.
thx VEN, i fixed it. Anything else?
Deviance is offline
ThomasNguyen
Senior Member
Join Date: May 2006
Old 07-29-2006 , 15:23   Re: Random Weapons
Reply With Quote #5

so this is somewhat of a deathmatch type except the client does NOT choose which weapon they get. or its like random weapon arena in uaio
__________________
ThomasNguyen is offline
Old 07-29-2006, 17:13
Deviance
This message has been deleted by Deviance. Reason: Was a noob back then...
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 07-29-2006 , 18:40   Re: Random Weapons
Reply With Quote #6

Quote:
Originally Posted by Doombringer
well, yes
I think he wants to know which one it is.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Old 07-29-2006, 18:42
Deviance
This message has been deleted by Deviance. Reason: ;/
Old 07-29-2006, 18:44
Deviance
This message has been deleted by Deviance. Reason: Was a noob back then...
Soulseker
Senior Member
Join Date: Sep 2005
Old 07-29-2006 , 21:02   Re: Random Weapons
Reply With Quote #7

u get random guns but u doesnt respawn like death match

Edit : i can do this too with the valve hammer editor xD

Last edited by Soulseker; 07-29-2006 at 21:03. Reason: addition
Soulseker is offline
Old 07-29-2006, 21:07
Deviance
This message has been deleted by Deviance. Reason: Was a noob back then...
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 07-30-2006 , 09:56   Re: Random Weapons
Reply With Quote #8

How is this different than JGhG's Weapon Arena plugin?
__________________
Brad is offline
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 07-30-2006 , 12:37   Re: Random Weapons
Reply With Quote #9

Quote:
Originally Posted by Brad
How is this different than JGhG's Weapon Arena plugin?
this is more simple then JGhG's Weapon Arena, it gives random weapons only, client's can't choose weapons, it's different then JGhG's Weapon Arena, for sure

btw have you checked the source-code?

Last edited by Deviance; 07-30-2006 at 13:44.
Deviance is offline
Soulseker
Senior Member
Join Date: Sep 2005
Old 08-01-2006 , 19:07   Re: Random Weapons, UPDATE 31-07-2006
Reply With Quote #10

its a random gun giver ? right ?
so u dont respawn ;D only with special plugin then ^^
Soulseker 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 12:22.


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