Jump to content

createPickup model objects


DarkLink

Recommended Posts

Okay so I went to createPickup page on wiki, and notice this:

model: If the pickup is a custom model, this is the model id to use. Many non-pickup models can be used, though some may cause crashes. The following is a list of models designed to be used as pickups.

370: Jetpack

1212: Money (Wad of Cash)

1240: Health (heart)

1242: Armour

1272: House (blue)

1273: House (green)

1274: Money (dollar symbol)

1277: Save (floppy disk)

So is this the only objects models available for pickups? :S

I really want to use model : 1578 (drug_green) for my gamemode.

Is there a way to make it working?

Thanks in advance guys!

Link to comment

By the way if I make a weapon pickup it gives the weapon to the player when I hit the pickup?

or need an extra function?

I would like to put some flowers (weapon) its almost the same as the drug_green, it makes the job for my gamemode.

But I dont want to give those flowers as weapons but make a custom function I want, possible?

Thanks.

Link to comment
No, if i'm right, it won't give it as a weapon, so you could use it with your own function.

Okay I got it, thanks castillo!

By the way can you tell me what is the difference between this events:

onPickupHit

onPickupUse

I cant understand :S

Thanks!

Link to comment
onPickupUse is when you PICK a pickup.

onPickupHit is when you HIT a pickup.

Hm I guess I understand :)

Tryed a few examples and its okay.

Thanks castillo.

By the way do you know how to make a custom element for pickup model?

I tryed this:

on my EDF files, but creates a health pickup instead of flowers that is 325 model :S

I tryed to look on editor_main resources something about pickups but they dont use it on edf file, there must be another script I cant found it.. to learn from it.

So do you know how to make a custom element for a pickup model ?

Thanks in advance.

Link to comment
I think you need to specify the weapon ID (flowers = 14).

Thanks for your reply :)

Yes it appears now the flowers as custom element, but there is somekind of bug with the position.

I place the element (flowers) then I change the position on map editor with arrows, you know ? and the selection cuboid change position but flowers keep on same position, do you know why ?

Thanks in advance.

EDIT: tryed this but still not working :

Link to comment

Okay guys so I updated my resources using the link which NikDelgad gave me, and I guess the problem persists.

I tryed what u say SDK, I change the position, saved, and then reloaded the map.. and the flower get new position, according to where I put it. so its fine.

But when I place the element and I try to change is position I just change the red selection cuboid, not the visual representation of the element, do you see?

Look this image as example, I tryed to move the flowers to the left and this is what happens:

68290678.png

Flower representation keeps on the same spot, but the selecion cuboid changed position.

So anyone know how to help me?

Thanks alot in advance!!!

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...