English Equip More Guns And Equipment

8 replies
Goto Page
To the start Previous 1 Next To the start
10.08.15 12:55:47 pm
Up
HoOtix
User
Offline Off
Is there anyway that I can make a player hold more....

Primary Weapons (hold one of each weapon)
Secondary Weapons (hold one of each weapon)
Frags (hold more than one of each) - (not 100% needed)

---

If any of the listed requirments are actually possible in cs2d, May I ask... How? Thank you everyone.

-Why do I need this?-
-My half-life 2 mod is in progress, need the player to hold every one of each type of weapon-

Thank you, once again!
HoOtixGaming
10.08.15 01:06:33 pm
Up
Rainoth
Moderator
Offline Off
Yes, you can have one of every type of item. You cant have multiple he grenades but it's possible to script a workaround for that. Please search the file archive, I'm sure you'll find what you're looking for.
10.08.15 01:10:34 pm
Up
HoOtix
User
Offline Off
@user Rainoth:

Re: I'm lost... Don't know what to search anymore.
HoOtixGaming
10.08.15 01:19:00 pm
Up
Rainoth
Moderator
Offline Off
Well.. I can't read your mind and see what you want.
You want something like this?
file cs2d [R] Multiple Weapon Buy (4)
11.08.15 01:33:32 am
Up
HoOtix
User
Offline Off
@user Rainoth:

I'm looking for 'something' that can let the player(s) /pick up/ multiple weapons.
HoOtixGaming
11.08.15 02:03:31 am
Up
Greenhawk
User
Offline Off
Worst case, my man, you may have to create it yourself or ask one of these talented coders on the site, who are willing to go the extra mile to make it for you. I see what you mean though, you are thinking of something like the quake III arena system. @user Pagyra: made a mod with that in mind. You should check it out. http://www.unrealsoftware.de/files_show.php?file=11416&goto=116752
11.08.15 02:47:13 am
Up
HoOtix
User
Offline Off
@user Greenhawk:

Code:
1
2
3
4
5
6
7
8
function contains(table, element)
    for _, value in pairs(table) do
        if value == element then
            return true
        end
    end
    return false
end


Code:
1
2
3
4
5
6
7
8
9
addhook("walkover","moregun")
function moregun(id,iid,type)
     if not (contains(playerweapons(id),type)) then
          parse("equip "..id.." "..type)
          parse("setweapon "..id.." "..type)
          parse("removeitem "..iid)
          return 0
     end
end



---

Is this, actually possible to change to secondary "version" ?

RE: Nvm LOL this works!
edited 1×, last 11.08.15 04:24:45 am
HoOtixGaming

Admin/mod comment:

Code tag has been added for two piece of codes. Next time use them when you post a code! /user Fraizeraust
11.08.15 08:46:22 am
Up
THEMUD
User
Offline Off
Do you want to equip all the weapons? Or what do you mean?
I don't know what I'm doing with my life.
11.08.15 10:47:21 am
Up
HoOtix
User
Offline Off
@user THEMUD:

I'm thankful that you are trying to help. But.. As you can see, I have consumed my problems

Thanks!
HoOtixGaming
To the start Previous 1 Next To the start