Tremulous Forum

Mods => Modding Center => Topic started by: ACKMAN on November 15, 2008, 05:29:56 pm

Title: About invisibility
Post by: ACKMAN on November 15, 2008, 05:29:56 pm
I don't know but... is there any way to make a player invisible?
Title: Re: About invisibility
Post by: Amanieu on November 15, 2008, 05:33:47 pm
Add SVF_SINGLECLIENT to ent->r.svFlags and set ent->r.singleClient to his client #
Title: Re: About invisibility
Post by: ACKMAN on November 15, 2008, 07:05:23 pm
I love you :D
Title: Re: About invisibility
Post by: Hendrich on November 15, 2008, 07:08:45 pm
Quote
I love you

Everybody does. Amanieu is a hard-working modder who always contributes to the forum. :)

Btw, can you tell us why you would want to make players invivisble ACKMAN? Its sounds like you hatching up a fun idea.
Title: Re: About invisibility
Post by: ACKMAN on November 15, 2008, 07:20:30 pm
Instagib mod, when on a killing spree you get random powerup... god mode... invisibility... :D
Title: Re: About invisibility
Post by: Hendrich on November 15, 2008, 07:22:33 pm
Well doesn't that just sound kick ass?  ;D

Are you going to release the mod/QVM on the forum or what server will the mod be on?
Title: Re: About invisibility
Post by: ACKMAN on November 15, 2008, 08:14:59 pm
Well... the original creator of the mod is Archangel... he didnt share source so i coded mod myself... now i just add
kick ass
things to waste time and for fun

So... i dont know if i have to post QVM because Archangel is making the same mod..
Title: Re: About invisibility
Post by: your face on November 15, 2008, 09:52:47 pm
Quote
I love you

Everybody does. Amanieu is a hard-working modder who always contributes to the forum. :)


except some of mg ;D
Title: Re: About invisibility
Post by: kevlarman on November 16, 2008, 12:45:23 am
Quote
I love you

Everybody does. Amanieu is a hard-working modder who always contributes to the forum. :)


except some of mg ;D
just because some of us don't like some things amanieu is doing doesn't mean we don't like amanieu, i would say that in general it's the opposite of the truth (though i can't speak for everyone).
Title: Re: About invisibility
Post by: Archangel on November 16, 2008, 04:09:39 am
Well... the original creator of the mod is Archangel... he didnt share source so i coded mod myself... now i just add
kick ass
things to waste time and for fun

So... i dont know if i have to post QVM because Archangel is making the same mod..

I don't mind, I don't really have the time to work on mods.
Title: Re: About invisibility
Post by: ACKMAN on November 16, 2008, 12:16:10 pm
Anyways... you can play my mod in TremSpain server. Just use /callvote instagib and the next match will be instagib.

[EDIT]Btw.. we are playing 27 in TSpain at the moment... instagib madness xD ill upload demo
Title: Re: About invisibility
Post by: Roanoke on November 28, 2008, 11:48:37 pm
Add SVF_SINGLECLIENT to ent->r.svFlags and set ent->r.singleClient to his client #
Sorry if this sounds noobish but... what file?
Title: Re: About invisibility
Post by: Archangel on November 29, 2008, 06:25:15 am
depends where you want it.
Title: Re: About invisibility
Post by: Dinyi on December 05, 2008, 06:14:36 am
What would you do if you wanted to make this into a command (!invisible (name|slot#) + !visible (name|slot#)
Sorry if this is newbish... I just started coding :/
Title: Re: About invisibility
Post by: Syntac on December 06, 2008, 02:49:04 pm
To create the admin command, you would need to mess around in g_admin.c and g_admin.h (probably some other files as well, but I'm too wasted to remember them).
Title: Re: About invisibility
Post by: ACKMAN on December 06, 2008, 04:05:58 pm
Code: [Select]
  vic->r.svFlags ^= SVF_SINGLECLIENT;
  if( !( vic->r.svFlags & SVF_SINGLECLIENT ) )
  {
ADMP( va("^3!invisible: ^7invisible mode has been ^1disable^7 for %s^7\n", vic->client->pers.netname ));
  }
  else
  {
ADMP( va("^3!invisible: ^7invisible mode has been ^2enabled^7 for %s^7\n", vic->client->pers.netname ));
vic->r.singleClient = vic->client - level.clients;
  }
  return qtrue;

???
Title: Re: About invisibility
Post by: mooseberry on December 07, 2008, 12:07:48 am
Just saying, it should say invisibility has been disabled.
Title: Re: About invisibility
Post by: ACKMAN on December 08, 2008, 03:25:11 pm
XD oops, thank u
Title: Re: About invisibility
Post by: ==Troy== on December 30, 2008, 09:11:20 am
you can also use NO_DRAW flag.
Player will still be visible on a radar and you will hear his steps, but he will be visually invisibile.

the single client flag prevents the entity from being sent to the other players, which completely screws up client prediction if they are going to collide. Especially makes it unplayable for aliens.
Title: Re: About invisibility
Post by: ACKMAN on December 30, 2008, 09:50:15 pm
Wut flag is that, i didnt know about it
Title: Re: About invisibility
Post by: ==Troy== on December 30, 2008, 11:05:07 pm
sorry, I was wrong, it is EF_NODRAW

client->ps.eFlags &= ~EF_NODRAW;   << invisible client
client->ps.eFlags |= EF_NODRAW;  << visible client