Search found 94 matches

by dcoshea
Sun Jun 06, 2004 8:01 am
Forum: Scripting
Topic: How Do I Get Game Data Out
Replies: 31
Views: 859

We probably all accepted an agreement when we signed up for accounts which said that when we post code on here we give up rights to it or something.

Anyway, I think a resonable person would probably expect that:

- any sample code posted on forums, in books, documentation, etc., is probably (or at ...
by dcoshea
Fri Apr 09, 2004 7:22 am
Forum: Scripting
Topic: jv_bot01.pk3 file check
Replies: 14
Views: 521

Okay, how about you put a script, say "jv_bot_detect.cfg", into the .pk3 that you want clients to install; this script should do something you can detect happening on the server, like +use (I'm assuming that if you can enter +use in the console you can do it from a .cfg file)

Now, when you want to ...
by dcoshea
Thu Apr 01, 2004 12:05 pm
Forum: Scripting
Topic: Kill cam for mohaa where would I start
Replies: 61
Views: 1411

well it did detect when you shot your gun so it may work but I don't know why an ai didn't trigger it . Something different about a ai shooting or spawnflags need adjusting maybe . I want it to detect players anyway .

If you don't have two computers or any friends (lucky for me I have two ...
by dcoshea
Thu Apr 01, 2004 12:01 pm
Forum: Scripting
Topic: Kill cam for mohaa where would I start
Replies: 61
Views: 1411

Re: size

I am pretty sure a player's origin is at or near his feet. So, that trigger will be to low and may only come up to his knees.

I made it 96 units high, I thought that was the correct height of a player? I'm not sure where I think I got that information from but for some reason I think it's 96 ...
by dcoshea
Thu Apr 01, 2004 12:00 pm
Forum: Scripting
Topic: Kill cam for mohaa where would I start
Replies: 61
Views: 1411

hey,i have mohaa ,sh and bt .i could do testing 4 u if u tell me exactly what 2 do.i also have a lan which might be useful.however my response could be a day late or so :wink:

Thanks for the offer, might take you up on it :) Damn that Bdbodger, he has pointed out something regarding single-player ...
by dcoshea
Wed Mar 31, 2004 8:13 am
Forum: Scripting
Topic: Kill cam for mohaa where would I start
Replies: 61
Views: 1411

No I am not useing spearhead . I think when I did his before I had not added a way to see if you where triggering it yourself . I did ignore hits by myself but had no output for it . Anyway will try it again later maybe.

I guess I ought to be the one to try and get my own code working so I can do ...
by dcoshea
Tue Mar 30, 2004 6:28 am
Forum: Scripting
Topic: Kill cam for mohaa where would I start
Replies: 61
Views: 1411

well it does not detect an ai shooting me . I think is did this before but maybe I did not set the trigger big enough or it was another part of the script I don't remember .

I didn't try with AI, I only saw it respond to (a) other players shooting me and (b) getting killed by an exploding barrel ...
by dcoshea
Tue Mar 30, 2004 5:17 am
Forum: Scripting
Topic: Kill cam for mohaa where would I start
Replies: 61
Views: 1411

I seen your post about spawning triggers but it did not work for me . Maybe you can make a test script for us .

FYI I was using Spearhead when I was playing with this, hopefully that's not significant. Pretty much all I did was put the code I posted into maps/obj/obj_team2.scr with the addition ...
by dcoshea
Tue Mar 30, 2004 4:51 am
Forum: Scripting
Topic: Kill cam for mohaa where would I start
Replies: 61
Views: 1411

Well for me rejoining team and gun is a small price tyo pay for finding the shooter, its a balanced pay off I think, why would it only work with 2 and not 3, 4 or 30?

If there are two people playing, and one goes spectator, they will always spectate the other person, and if there are two people ...
by dcoshea
Tue Mar 30, 2004 4:48 am
Forum: Scripting
Topic: Gewehr 43...is it possible?
Replies: 7
Views: 295

Re: Ooops!

IvanTheTerrible wrote:Oooops! I spoke to soon...I forgot to remove the mike torso file before testing your method. It looks like the only way to get it to work is by editting the mike torso file.
Ahh okay, thanks for the info :)

Regards,
David
by dcoshea
Tue Mar 30, 2004 3:38 am
Forum: Scripting
Topic: Kill cam for mohaa where would I start
Replies: 61
Views: 1411

well that bit of code still need work the command self stufftext "spectator" does put you in to spectator mode that is what is annoying about it . You will have to rechoose gun and team you can't just click the fire button and respawn .

How about:

local.cur_team = local.player.dmteam
// do ...
by dcoshea
Mon Mar 29, 2004 11:42 pm
Forum: Scripting
Topic: Kill cam for mohaa where would I start
Replies: 61
Views: 1411

Ok thanks for the confirmation Bdbodger!

Well I did a test on my 2 pcs here at home on lan and each time you are killed you spectate the guy who shot you ...........

I guess that's because you only had two players :)

player_died:

local.org = self.origin + ( 64 64 196)
local.angles = vector ...
by dcoshea
Mon Mar 29, 2004 11:27 am
Forum: Scripting
Topic: Kill cam for mohaa where would I start
Replies: 61
Views: 1411

He sends to to spectator mode, but he is affraid it will cheese players off, I like how it shows you who killed you and where he did it from.

How does it show you who killed you?

player_died:

local.org = self.origin + ( 64 64 196)
local.angles = vector_toangles ( self.origin - local.org )
self ...
by dcoshea
Fri Mar 26, 2004 9:43 am
Forum: Scripting
Topic: How Do I Get Game Data Out
Replies: 31
Views: 859

M&M wrote:**holds breathe *** **face becomes red ** :oops: **waiting ** ......
How's the installation of PHP and mohstats going?

Regards,
David
by dcoshea
Thu Mar 25, 2004 1:38 am
Forum: Scripting
Topic: How Do I Get Game Data Out
Replies: 31
Views: 859

i tried 2 dload it ,but i somehow ended up with a bunch of broken links leading 2 nowhere .i did manage 2 reach the file but i didnt understand how 2 get it onto my harddrive .ill prolly try 2morow as im very tired 2day and i want 2 slleeeeeppp so im not thinking very straight :wink:

Well I'm not ...