Raised This Month: $ Target: $400
 0% 

how spawning object (sentry, dispencer etc)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LouLouBizou
Member
Join Date: Aug 2006
Location: Toulouse (France)
Old 06-08-2008 , 08:59   how spawning object (sentry, dispencer etc)
Reply With Quote #1

Hi !

I want to know if some one have succes in spawning object in TF2 like sentry, dispencer etc ?

And how can we do that in scripting ?

I have see this "MaxObjects 1" in objects.txt and if we change the number to 2 we can build 2 senttry. how change this data instead of editing file ?

if I edit file, all players can build to 2 sentry, but i want to do it on specefic player

any help ?

Thanks
__________________
LouLouBizou alias Don French !



Last edited by LouLouBizou; 06-08-2008 at 11:07.
LouLouBizou is offline
Send a message via MSN to LouLouBizou
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 06-09-2008 , 13:35   Re: how spawning object (sentry, dispencer etc)
Reply With Quote #2

DispatchSpawn works fine on any entity, although for a sentry to actually work you'll have to set many more options. Like who it belongs to etc. There have been topics about this, but I don't think anyone has been able to get it to work. It's way easier to change MaxObjects to a high number and then limit the times a specific client can use the build command.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
LouLouBizou
Member
Join Date: Aug 2006
Location: Toulouse (France)
Old 06-09-2008 , 14:09   Re: how spawning object (sentry, dispencer etc)
Reply With Quote #3

any possibility to edit some entity about maxobject instead of files ?
__________________
LouLouBizou alias Don French !


LouLouBizou is offline
Send a message via MSN to LouLouBizou
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 06-09-2008 , 14:37   Re: how spawning object (sentry, dispencer etc)
Reply With Quote #4

Quote:
Originally Posted by DJ Tsunami View Post
DispatchSpawn works fine on any entity, although for a sentry to actually work you'll have to set many more options. Like who it belongs to etc. There have been topics about this, but I don't think anyone has been able to get it to work. It's way easier to change MaxObjects to a high number and then limit the times a specific client can use the build command.
They were supposed to have added the ability to place sentries and dispensers in maps in a recent update. If they did, there should be some new flags or keyvalues or inputs that would let you spawn more.

LouLou: Editing the script txt file is the only way anyone has done it so far.
__________________
"Good grammar is essential, Robin."
- Batman
L. Duke is offline
msleeper
Veteran Member
Join Date: May 2008
Location: Atlanta, Jawjuh
Old 06-10-2008 , 20:28   Re: how spawning object (sentry, dispencer etc)
Reply With Quote #5

Quote:
Originally Posted by L. Duke View Post
They were supposed to have added the ability to place sentries and dispensers in maps in a recent update. If they did, there should be some new flags or keyvalues or inputs that would let you spawn more.

LouLou: Editing the script txt file is the only way anyone has done it so far.
They were added, they are obj_sentrygun and obj_dispenser, but I personally have not used them yet either via map placement or using SourceMod.
__________________
msleeper is offline
LouLouBizou
Member
Join Date: Aug 2006
Location: Toulouse (France)
Old 06-11-2008 , 05:14   Re: how spawning object (sentry, dispencer etc)
Reply With Quote #6

Quote:
Originally Posted by msleeper View Post
They were added, they are obj_sentrygun and obj_dispenser, but I personally have not used them yet either via map placement or using SourceMod.
I would appreciate if someone can help me a little to code this, thanks !
__________________
LouLouBizou alias Don French !


LouLouBizou is offline
Send a message via MSN to LouLouBizou
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 06-11-2008 , 13:28   Re: how spawning object (sentry, dispencer etc)
Reply With Quote #7

CreateEntityByName
DispatchSpawn
bl4nk is offline
LouLouBizou
Member
Join Date: Aug 2006
Location: Toulouse (France)
Old 06-13-2008 , 08:25   Re: how spawning object (sentry, dispencer etc)
Reply With Quote #8

humm ok

is it possible to spawn other entity like a player ? (not a fake client !)

spawn a fake player using a "player entity" and the player will be visible in score board, on server info etc (with fake client function)

any idea/help ?
__________________
LouLouBizou alias Don French !


LouLouBizou is offline
Send a message via MSN to LouLouBizou
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 06-13-2008 , 13:45   Re: how spawning object (sentry, dispencer etc)
Reply With Quote #9

No. It's either a bot or a live player, there is no grey area.
bl4nk is offline
ratty
SourceMod Donor
Join Date: Jan 2006
Old 06-17-2008 , 00:37   Re: how spawning object (sentry, dispencer etc)
Reply With Quote #10

If that was possible, and found out about, you can bet someone would make a new fake players plugin, and a week later valve would have a fix.
ratty is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode