Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
4 registered members (NewbieZorro, Grant, TipmyPip, AndrewAMD), 13,346 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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 | 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