AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Random Weapons, UPDATE 31-07-2006 (https://forums.alliedmods.net/showthread.php?t=42201)

Deviance 07-28-2006 21:51

Random Weapons, UPDATE 31-07-2006
 
4 Attachment(s)
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_

k007 07-28-2006 22:01

Re: Random Weapons At Round Start
 
gj, seem like a good plugin

VEN 07-29-2006 02:56

Re: Random Weapons At Round Start
 
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.

Deviance 07-29-2006 07:21

Re: Random Weapons At Round Start
 
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? :)

ThomasNguyen 07-29-2006 15:23

Re: Random Weapons
 
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

SweatyBanana 07-29-2006 18:40

Re: Random Weapons
 
Quote:

Originally Posted by Doombringer
well, yes

I think he wants to know which one it is.

Soulseker 07-29-2006 21:02

Re: Random Weapons
 
u get random guns but u doesnt respawn like death match

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

Brad 07-30-2006 09:56

Re: Random Weapons
 
How is this different than JGhG's Weapon Arena plugin?

Deviance 07-30-2006 12:37

Re: Random Weapons
 
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?

Soulseker 08-01-2006 19:07

Re: Random Weapons, UPDATE 31-07-2006
 
its a random gun giver ? right ?
so u dont respawn ;D only with special plugin then ^^


All times are GMT -4. The time now is 04:04.

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