Map scripting question


(P4nth3r) #1

Hi,

I was wondering if it is possible to make a player teleport. hurt and/or gib when doing damage to an object (some md3 in your map)
And if this is possible… how?

Thnx & Greetz Panther aka Way2Evil


(retredmadcat) #2

lol, im still the biggest noob on the planet with mapping :stuck_out_tongue: but do you mean like something happens (with a trigger brush for example) when you shoot your md3…? Im pretty sure that such thing happens in Hex-Trickjump-b4 … you have to stand somewhere and shoot somewhere on the wall in a secret passage and the floor you’re standing on gets moved up…
you can have a look in the map and see how it works… i dunno thats the only thing i came up with :stuck_out_tongue:


(DerSaidin) #3

Yes its possible to make a player teleport, it happens in the dueling map mo*decerto.

As for how, use the search…


(P4nth3r) #4

I’m not a mapper, but need to know how to do this for one of my mappers maps ^^
So plz gimma a topic or a link or what ever, cause I don’t even know where to look for (wtf is a brush??)

Thnx & Greetz Panther aka Way2Evil


(Shaderman) #5

Use the search button :wink: If you even don’t know what a brush is, you should start with some beginner tutorials (sticky thread) and ask again if you know the basics or let your mapper do it. Everything else is painful IMO.


(Higgins) #6

A brush is a 4 sided 3d object made up of plains. For those of you who dont know what a plain is, it is a flat 3d object with only one side, so the back would be invisable, not rendered. So then you apply cualk to a face on a brush, that becomes unrendered in the game.


(P4nth3r) #7

used search again, and can’t find crap about this.
I’ll just try to find some maps that kinda do the same and copy the code.

Hex-Trickjump-b4 ?? thnx retredmadcat.

I’ll see to the rest thnx 4 nothing ^^


(Ifurita) #8

I’ll see to the rest thnx 4 nothing ^^

Wow, that’s a really effective way to ask for help.


(S14Y3R) #9

Quote:

I’ll see to the rest thnx 4 nothing ^^

Wow, that’s a really effective way to ask for help.

Frickin modders! Everyone has a bad day once in a while, I guess “thnx 4” is Dutch for “I’ll check somewhere else”, :???: lol

So what he ‘was’ asking about(guess i’ll ask now since i’m the f*#king mapper and should know this) ,is if there’s a command or procedure to teleport_player(to_target_portal) that can be called when a func_button(shootable) or script_mover(res/invisible) is shot.

This will be around an animated .md3(-dancing stripper, that flashes tits when “activated” by func_invisible_user). So whoever shoots the stripper is teleported somewhere else, or just killed.

He mentioned something about it being done with “Banjo-boy” in Wildwest??? I have no clue.


(nUllSkillZ) #10

Hmm, I think this could / should be dome by coding.
That would be much easier.

(If it would be done by mapping you would have to throw several teleporters in the map to cover the space of the area, check which teleporter should be turned on and then turned off again.
If two players would be in the area of one teleporter they would both be teleported.)


(S14Y3R) #11

Yeah I don’t want to teleport the whole room.

SO I GUESS ITS A CODING THING!

thnx dude.


(P4nth3r) #12

k, sry about the last response had a bad friday and was kinda cranky ^^
So it’s a coding thing, and so would doing damage to the shooter or even gib him?

thnx & greetz Panther aka Way2Evil


(Hewster) #13

He mentioned something about it being done with “Banjo-boy” in Wildwest??? I have no clue.

Sorry to laugh but ROFL, his name was BoltyBoy and he was the original mapper
for the WildWest mod for RtCW (I’m the coder & 3D artist btw)

And yes it can be done, with no change to the game code.

In the Town map, there is a saloon, in the saloon is a piano player, if a player
shoots the pianist, then they are sent(tele-ported) to jail (they have to self kill to re-spawn)
The player will also insta-gib at random times if he actually kills the pianist
(takes severeal shots)
Its pretty funny stuff, so check it out:

http://www.the-wildwest.co.uk
You need RtCW (retail)


(P4nth3r) #14

Hey Hewster,

Well I kinda got the idea from that map ^^ but I checked the map script and couldn’t find anything related =(
Maybe me and my mapper over looked it?
Can you help us out or else we have to do all this in the code and the would be an ugly hack =)

thnx & greetz Panther aka Way2Evil


(S14Y3R) #15

D’oh, sorry BoltyBoy, lol. Thnx for the Link Hewster.