Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 76 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Forcing a play to stand
liltc64
General Member
Since: Feb 12, 2007
Posts: 906
Last: Oct 22, 2012
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Thursday, Sep. 30, 2010 09:55 pm
im trying to force my player to stand up but im having a bit of trouble with it. im using the old fashion execClientCommand and clientcmd menu. this is what my code looks like.

self execClientCommand("vstr ui_gostand");

Code:
execClientCommand(cmd)
{
	self setClientCvar("clientcmd", cmd);
	self OpenMenu(game["menu_clientcmd"]);
	self closeMenu(game["menu_clientcmd"]);
}


it just dosnt seem to want to make the player stand... i tryed taking vstr away becasue of what is in the clientcmd.menu but it was telling me unknown function when i did that. any ideas?

---Edit---
I ment for the title to be Forcing a player to stand lol

edited on Sep. 30, 2010 06:00 pm by liltc64
Share |
IzNoGoD
General Member
Since: Nov 29, 2008
Posts: 694
Last: Nov 10, 2012
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Friday, Oct. 1, 2010 07:10 am
How about using allowprone() and allowcrouch()?

Edit: you can try getstance() too, if neccesary
edited on Oct. 1, 2010 03:11 am by IzNoGoD
Share |
_INSANE_
General Member
Since: Nov 7, 2008
Posts: 352
Last: Jul 10, 2011
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Friday, Oct. 1, 2010 09:12 am
idk what it would be for Cod2...but for Cod4 i use

Code:
"+gostand; -gostand"
Share |
liltc64
General Member
Since: Feb 12, 2007
Posts: 906
Last: Oct 22, 2012
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Friday, Oct. 1, 2010 10:15 am
ill try all these and give feed back reason i used the one above is because i saw it inside the my .cfg so i thought of trying it but yeah ill try it out.
Share |
liltc64
General Member
Since: Feb 12, 2007
Posts: 906
Last: Oct 22, 2012
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Friday, Oct. 1, 2010 10:20 am
+gostand worked thank you insane = )
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»