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

Members Online

»
0 Active | 7 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

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 : Soldier of Fortune
Category: SoFII General
General game questions, comments and chat.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
Author Topic: varMath cmd from q3 also possible in sof2 ?
Z e c K~rb
General Member
Since: Dec 23, 2006
Posts: 15
Last: Dec 23, 2006
[view latest posts]
Level 1
Category: SoFII General
Posted: Friday, Feb. 4, 2005 06:27 pm
hi there,

i wanted to ask if there is a similar cmd for sof2 to the varMath cmd from q3 ... a friend of mine uses that for making q3 movies and i would like to use it too, e.g. for fov :

bind x "varMath cg_fov +1"
bind y "varMath cg_fov -1"

i tried it with varMath in sof2, but it said unknown command... so if anybody knows that cmd for sof2 i would be very happy... thx in advance

greetz z3cK
Share |
sarro~rb
General Member
Since: Dec 23, 2006
Posts: 109
Last: Dec 23, 2006
[view latest posts]
Level 4
Category: SoFII General
Posted: Friday, Feb. 4, 2005 06:29 pm
What does varMath do?
Share |
Z e c K~rb
General Member
Since: Dec 23, 2006
Posts: 15
Last: Dec 23, 2006
[view latest posts]
Level 1
Category: SoFII General
Posted: Friday, Feb. 4, 2005 07:02 pm
well the first bind raises fov with +1 , e.g. from 80 to 81, and the other one is to decrease again... that works in q3 with every cmd like that, e.g. cg_thirdpersonrange etc...
Share |
sarro~rb
General Member
Since: Dec 23, 2006
Posts: 109
Last: Dec 23, 2006
[view latest posts]
Level 4
Category: SoFII General
Posted: Sunday, Feb. 6, 2005 02:46 am
I would pm this guy: http://forums.ravensoft.com/ib....3183918
Share |
Nologic~rb
General Member
Since: Dec 23, 2006
Posts: 874
Last: Dec 23, 2006
[view latest posts]
Level 7
Category: SoFII General
Posted: Monday, Feb. 7, 2005 10:14 am
Well the command isn't standard in SoF II or Q3A...you can how ever write a script that will do the same thing...just will be bulker is all.
Share |
Z e c K~rb
General Member
Since: Dec 23, 2006
Posts: 15
Last: Dec 23, 2006
[view latest posts]
Level 1
Category: SoFII General
Posted: Monday, Feb. 7, 2005 02:15 pm
yes of course, and i know your scripts and some other scripts but the thing is, i want to do that manually, like the turn around the player or raising the range and so on, and because i dont know how to write these scripts this cmd would be very usefull. i know your 3rdperson script which lets u do that stuff manually, but the steps are to high, e.g. from cg_thirdpersonYAW 10 to cg_thirdpersonYAW 20, that looks pretty bad when u make a movie with that because its not going very smooth if u know what i mean. if your 3rdpersonscript would be in +1 and -1 steps that would be perfect...
Share |
Nologic~rb
General Member
Since: Dec 23, 2006
Posts: 874
Last: Dec 23, 2006
[view latest posts]
Level 7
Category: SoFII General
Posted: Tuesday, Feb. 8, 2005 08:17 pm
Well the best thing to do would be to write Mod authors and see if they can add the command to their mod. Short of that you'll ether have to edit mine or some one else's scripts or create your own.
Share |
Z e c K~rb
General Member
Since: Dec 23, 2006
Posts: 15
Last: Dec 23, 2006
[view latest posts]
Level 1
Category: SoFII General
Posted: Thursday, Feb. 10, 2005 02:21 pm
ok, thanx for the tip nologic, im gonna ask the peeps at osp if they can add the command. but for now i edited your 3rdpersonscript. i splitted it into 4 scripts and put each of them in 1 cfg, so now i got 4 cfgs, 1 for tpr, 1 tpy, 1 tpp and 1 tph. i edited all that the steps are now +/- 2 and the problem now is that the cfgs are too big... well 2 of them can be loaded, but when i want them all to be loaded by my autoexec, sof wont start, and the green console in the beginning says MAX_CVARS ... so i shortened the tph from -180/+180 to -160/+160 and tpr from 0/360 to 0/300 but that didnt help... got any idea what i could do ? thx in advance ...

greetz z3cK
Share |
sarro~rb
General Member
Since: Dec 23, 2006
Posts: 109
Last: Dec 23, 2006
[view latest posts]
Level 4
Category: SoFII General
Posted: Friday, Feb. 11, 2005 04:27 am
####, I hope you figure this out--might be useful for others.
Share |
deltaray~rb
General Member
Since: Dec 23, 2006
Posts: 184
Last: Dec 23, 2006
[view latest posts]
Level 4
Category: SoFII General
Posted: Wednesday, Mar. 9, 2005 11:50 pm
If someone is interested, here is the code I wrote to do some more thirdperson control and fov handling withotu overloaded megalarge scripts. Only a few changes in cg_consolecmds.c are needed:

Added functions:
Code Sample

// Deltaray's MOVIE MOD
static void CG_Fov_up ( void ) { if (cg_fov.value < 200) { cg_fov.value++; } }
static void CG_Fov_down ( void ) { if (cg_fov.value > 0) { cg_fov.value--; } }
static void CG_ThirdpersonHorzOffset_up ( void )
{
if (cg_thirdPerson.value == 1) { cg_thirdPersonHorzOffset.value++; }
}
static void CG_ThirdpersonHorzOffset_down ( void )
{
if (cg_thirdPerson.value == 1) { cg_thirdPersonHorzOffset.value--; }
}
static void CG_ThirdpersonRange_up ( void )
{
if (cg_thirdPerson.value == 1)
{
cg_thirdPersonRange.value++;
}
}
static void CG_ThirdpersonRange_down ( void )
{
if (cg_thirdPerson.value == 1)
{
cg_thirdPersonRange.value--;
}
}
static void CG_ThirdpersonYAW_up ( void )
{
if (cg_thirdPerson.value == 1)
{
cg_thirdPersonYaw.value++;
}
}
static void CG_ThirdpersonYAW_down ( void )
{
if (cg_thirdPerson.value == 1)
{
cg_thirdPersonYaw.value--;
}
}
static void CG_ThirdpersonPitch_up ( void )
{
if (cg_thirdPerson.value == 1 && cg_thirdPersonPitch.value < 78)
{
cg_thirdPersonPitch.value++;
// cg_thirdPersonPitch.modificationCount++;
}
}
static void CG_ThirdpersonPitch_down ( void )
{
if (cg_thirdPerson.value == 1 && cg_thirdPersonPitch.value > -103)
{
cg_thirdPersonPitch.value--;
// cg_thirdPersonPitch.modificationCount++;
}
}
// Deltaray's MOVIE MOD


Add these definitions to 'static consoleCommand_t commands[] = " struct'
Code Sample

// Deltaray's MOVIE MOD
{ "fov_up", CG_Fov_up },
{ "fov_down", CG_Fov_down },
{ "thirdpersonHorzOffset_up", CG_ThirdpersonHorzOffset_up },
{ "thirdpersonHorzOffset_down", CG_ThirdpersonHorzOffset_down },
{ "thirdpersonRange_up", CG_ThirdpersonRange_up },
{ "thirdpersonRange_down", CG_ThirdpersonRange_down },
{ "thirdpersonYAW_up", CG_ThirdpersonYAW_up },
{ "thirdpersonYAW_down", CG_ThirdpersonYAW_down },
{ "thirdpersonPitch_up", CG_ThirdpersonPitch_up },
{ "thirdpersonPitch_down", CG_ThirdpersonPitch_down },
// Deltaray's MOVIE MOD


Then you will be able to control 3rd person cvars by using this commands:
cvar: cg_fov
fov_up
fov_down

cvar: cg_thirdpersonHorzOffset
thirdpersonHorzOffset_up
thirdpersonHorzOffset_down

cvar: cg_thirdpersonRange
thirdpersonRange_up
thirdpersonRange_down

cvar: cg_thirdpersonYAW
thirdpersonYAW_up
thirdpersonYAW_down

cvar: cg_thirdpersonPitch
thirdpersonPitch_up
thirdpersonPitch_down

If someone wants the compiled qvm's with only these changes and some other, kindly PM me.
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Soldier of Fortune : SoFII General

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

»