Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Akow), 710 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Pick up weapons ??? #154261
09/15/07 01:21
09/15/07 01:21
Joined: Sep 2007
Posts: 19
L
LiDoStudio Offline OP
Newbie
LiDoStudio  Offline OP
Newbie
L

Joined: Sep 2007
Posts: 19
I use my character to pickup some item in the terrain, it's ok but nothing happen later.


Re: Pick up weapons ??? [Re: LiDoStudio] #154262
09/16/07 09:45
09/16/07 09:45
Joined: Nov 2004
Posts: 1,083
Germany
rincewind Offline
Serious User
rincewind  Offline
Serious User

Joined: Nov 2004
Posts: 1,083
Germany
Do you use the C-Script or the Lite-C templates?

If you use Lite-C proceed as follows:

Open the file plBipedWeap00,

starting from line 151 you can see the template scripts for the first four weapons that are predefined. You can change the weapon models by replacing the weapon models in the models folder under "template 6" (keep the name of the template weapon models).

If you want to add more weapons, go to line 351 (Weapon #5 Model). IN line 356 (Type) you can replace the model with the name of the weapon model you wish to add.

Save the changed script file and close.

Open your level in WED, place the wepon somewhere and give it the template biped weapon action. Under properties, change the ID to "5" (the ID of the weapon you just changed in the script)
now, you can pick up the weapon and when you cycle through your weapons ingame, it will appear and you can use it.

Changing the firing mode:

If you want to customize your new weapon, proceed as follows:
Open "weapons00.wdl" in SED and got to line 436 ("section: Weapon #5")
between line 443 to line 474 you can change the various parameters of your weapon (there is an explanation provided of what each parameter does)

from LIne 476 on you can select the effects for your weapon by simply deleting the two slashes in front of the corresponding line.

Example:
Line 482: // weapons00_template[(4*weapons00_weap_field_count) + weapons00_weap_fx] += weapons00_fx_laser;

This is the laser effect. If you want to uses this effect for your weapon, simply delete the two slashes to make the line look like this:

Line 482: weapons00_template[(4*weapons00_weap_field_count) + weapons00_weap_fx] += weapons00_fx_laser;

the two scripts offer some more weapon numbers so you can add more weapons with various effect as you wish.

I hope this was comprehensible.

Best regs and have a nice sunday
Rince


Born for runes

Moderated by  HeelX, rvL_eXile 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1