|
3 registered members (AndrewAMD, Grant, Neb),
908
guests, and 6
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: WEAPON CHAINGING SYSTEM
[Re: 3run]
#308243
02/02/10 14:23
02/02/10 14:23
|
Joined: Dec 2006
Posts: 1,086 Queensland - Australia
Nidhogg
Serious User
|
Serious User
Joined: Dec 2006
Posts: 1,086
Queensland - Australia
|
Improve my English eh! Bwahahahahahaha..
Windows XP SP3 Intel Dual Core CPU: E5200 @ 2.5GHz 4.00GB DDR3 Ram ASUS P5G41T-M LX PCIE x16 GeForce GTS 450 1Gb SB Audigy 4 Spyware Doctor with AntiVirus
|
|
|
Re: WEAPON CHAINGING SYSTEM
[Re: George]
#315441
03/15/10 15:06
03/15/10 15:06
|
Joined: May 2009
Posts: 5,365 Caucasus
3run
OP
Senior Expert
|
OP
Senior Expert
Joined: May 2009
Posts: 5,365
Caucasus
|
Dear George, not like I'm trying to hurry you up. I know that you are really a busy person, and now when there is a team project, you are even much busier... Sorry for asking you again for help, but I really do need the weapon changing system with drop and pick up system, slot based, up to 2 weapons like in counter strike. I've tried many times to do that myself with arrays, but I always failed  I've finished already my player movement script, improved it as well... And I've made a simple weapons system myself, up to 9 weapons. But thats all not as I need. I need some thing similar to counter strike, so player couldn't be able to pick up more than 2 weapons at the same time. And he'll be able to drop and pick up weapons as well. I really hope that you or some one will help me out with this, I'm newbie in such stuff... If the person who will help me out, will need help in scripting for example with player movement script, I'll be really happy to help  sorry again for this dear George.
|
|
|
Re: WEAPON CHAINGING SYSTEM
[Re: 3run]
#315505
03/16/10 08:07
03/16/10 08:07
|
Joined: Aug 2003
Posts: 2,008 Bucharest, Romania
George

Expert
|

Expert
Joined: Aug 2003
Posts: 2,008
Bucharest, Romania
|
I have started to work at the shooter template code, so the weapons system should be out in a few months. I guess that it won't be exactly what you need, but you should be able to customize it without too much effort. Meanwhile, I suggest that you should continue to improve your programming abilities.
Here are a few things to try until then: create a variable named "picked_up_weapons" and set its initial value to zero. If the player comes close to a weapon (make them all passable) and picked_up_weapons is smaller than 2, add the weapon to its arsenal and increment picked_up_weapons. Otherwise, if picked_up_weapons is 2 already, don't do anything until the player drops a weapon (you'd do this by removing the weapon using ent_remove and creating (ent_create) it at player's feet).
|
|
|
Re: WEAPON CHAINGING SYSTEM
[Re: George]
#315516
03/16/10 09:51
03/16/10 09:51
|
Joined: May 2009
Posts: 5,365 Caucasus
3run
OP
Senior Expert
|
OP
Senior Expert
Joined: May 2009
Posts: 5,365
Caucasus
|
Thank you dear George, I'll do my best. Only one thing I what to ask you for, I have some problems with removing and creating weapons at the players feet. First problem is, that I don't know how to make create different weapon models, depending on the weapon type. And the second, and main problem is that I do not know how to create weapon model near players feet. I've tried to to create from camera.x and then move a little bit forward, so it flyes a bit and the heights of model is decreasing... So it will fall on the ground, something similar to counter strike... But weapon model just stuck at the player position... I've tried to use push, but failed... This problems I've faced, please give me a small examples how to do all that. After when I'll finish it, I'll post the script here, so I hope if you will find it usefull it will be at the next AUM in plug and play  I do hope so.
|
|
|
|